joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10103330
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x18
push esi
push edi
mov edi, ecx
mov esi, dword [edi]
movzx eax, byte [esi]
cmp byte [eax + 0x1016cf18], 0
je 0x1010335e
nop word [eax + eax]
movzx eax, byte [esi + 1]
inc esi
cmp byte [eax + 0x1016cf18], 0
jne 0x10103350
mov dword [edi], esi
mov ecx, esi
mov dl, byte [esi]
movzx eax, dl
mov dword [esp + 8], ecx
cmp byte [eax + 0x1016d428], 0
je 0x101034f8
nop dword [eax + eax]
cmp dl, 0x26
jne case.0x101033a0.36
movsx eax, byte [esi + 1]
add eax, 0xffffffdd
cmp eax, 0x4e
ja case.0x101033a0.36
movzx eax, byte [eax + 0x10103538]
jmp dword [eax*4 + 0x10103520]
mov al, byte [esi + 2]
cmp al, 0x6d
jne 0x101033ce
cmp byte [esi + 3], 0x70
jne case.0x101033a0.36
cmp byte [esi + 4], 0x3b
jne case.0x101033a0.36
mov byte [ecx], 0x26
inc ecx
add esi, 5
jmp 0x101034e2
cmp al, 0x70
jne case.0x101033a0.36
cmp byte [esi + 3], 0x6f
jne case.0x101033a0.36
cmp byte [esi + 4], 0x73
jne case.0x101033a0.36
cmp byte [esi + 5], 0x3b
jne case.0x101033a0.36
mov byte [ecx], 0x27
inc ecx
add esi, 6
jmp 0x101034e2
cmp byte [esi + 2], 0x75
jne case.0x101033a0.36
cmp byte [esi + 3], 0x6f
jne case.0x101033a0.36
cmp byte [esi + 4], 0x74
jne case.0x101033a0.36
cmp byte [esi + 5], 0x3b
jne case.0x101033a0.36
mov byte [ecx], 0x22
inc ecx
add esi, 6
jmp 0x101034e2
cmp byte [esi + 2], 0x74
jne case.0x101033a0.36
cmp byte [esi + 3], 0x3b
jne case.0x101033a0.36
mov byte [ecx], 0x3e
inc ecx
add esi, 4
jmp 0x101034e2
cmp byte [esi + 2], 0x74
jne case.0x101033a0.36
cmp byte [esi + 3], 0x3b
jne case.0x101033a0.36
mov byte [ecx], 0x3c
inc ecx
add esi, 4
jmp 0x101034e2
mov cl, byte [esi + 2]
xor edx, edx
cmp cl, 0x78
jne 0x101034a0
movzx eax, byte [esi + 3]
add esi, 3
mov al, byte [eax + 0x1016d218]
cmp al, 0xff
je 0x101034c7
inc esi
movzx eax, al
shl edx, 4
add edx, eax
movzx eax, byte [esi]
mov al, byte [eax + 0x1016d218]
cmp al, 0xff
jne 0x10103488
jmp 0x101034c7
movzx eax, cl
add esi, 2
mov al, byte [eax + 0x1016d218]
cmp al, 0xff
je 0x101034c7
movzx eax, al
lea ecx, [edx + edx*4]
inc esi
lea edx, [eax + ecx*2]
movzx eax, byte [esi]
mov al, byte [eax + 0x1016d218]
cmp al, 0xff
jne 0x101034b0
lea ecx, [esp + 8]
call fcn.10103260
cmp byte [esi], 0x3b
jne 0x10103502
mov ecx, dword [esp + 8]
inc esi
jmp 0x101034e6
mov al, byte [esi]
mov byte [ecx], al
inc ecx
inc esi
mov dword [esp + 8], ecx
mov dl, byte [esi]
movzx eax, dl
cmp byte [eax + 0x1016d428], 0
jne 0x10103380
mov dword [edi], esi
mov eax, ecx
pop edi
pop esi
add esp, 0x18
ret
push esi
push 0x1016d550
lea ecx, [esp + 0x14]
call fcn.10101f00
push 0x10199158
lea eax, [esp + 0x10]
push eax
call fcn.10105500
insd dword es:[edi], dx
xor al, 16
adc byte [edi + 0x34101033], ah
xor al, 0x10
adc byte [esp + esi + 0x10], dl
adc byte [eax], al
xor al, 0x10
adc ah, bl
xor al, 0x10
adc byte [eax], al
add eax, 0x5050505
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215041
add eax, 84214277
add eax, 84214533
add eax, -859044859
int3
Function at 0x10119ecb
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10119b8b

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x10002b56
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x10002ba6
mov eax, dword [0x100041e4]
test eax, eax
je 0x10002b72
call eax
test eax, eax
jne 0x10002b72
push 0xfffffffffffffffe
jmp 0x10002b8c
push 1
push 0x10004010
push 0x10004008
call fcn.10002c12
add esp, 0xc
test eax, eax
je 0x10002b92
push 0xfffffffffffffffd
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
push 0x10004004
push section..data
call fcn.10002c12
add esp, 0xc
push esi
test eax, 0xa0d0a0d
sub eax, 0x54524357
sub eax, 0xa0d0a0d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10001274
cmp dword [ebp + 0xc], 0
mov esi, eax
jne 0x10002bf6
call fcn.10002c39
push 0
push 0x10004018
push 0x10004014
call fcn.10002c12
push 0
push 0x10004020
push 0x1000401c
call fcn.10002c12
add esp, 0x18
mov eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x1000125c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
call sub.KERNEL32.DLL_GetEnvironmentStringsA
mov ebx, eax
mov dword [ebp - 0x10], ebx
jmp 0x10001299
cmp byte [ebx], 0x3d
je 0x10001285
inc dword [ebp - 0xc]
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
lea ebx, [ebx + edi]
cmp byte [ebx], 0
jne 0x10001278
mov edi, dword [ebp - 0xc]
inc edi
lea edi, [edi*4]
mov dword [ebp - 0x14], edi
push dword [ebp - 0x14]
call sub.CRTDLL.DLL_malloc
pop ecx
mov dword [ebp - 8], eax
mov dword [0x10003010], eax
cmp dword [ebp - 8], 0
jne 0x100012cc
xor eax, eax
jmp 0x10001342
mov ebx, dword [ebp - 0x10]
jmp 0x10001325
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
mov dword [ebp - 4], edi
cmp byte [ebx], 0x3d
je 0x1000131f
push dword [ebp - 4]
call sub.CRTDLL.DLL_malloc
pop ecx
mov esi, dword [ebp - 8]
mov dword [esi], eax
or eax, eax
jne 0x10001308
jmp 0x10001342
push ebx
mov edi, dword [ebp - 8]
push dword [edi]
call sub.CRTDLL.DLL_strcpy
add esp, 8
add dword [ebp - 8], 4
mov edx, dword [ebp - 4]
lea ebx, [ebx + edx]
cmp byte [ebx], 0
jne 0x100012d1
mov edx, dword [ebp - 8]
mov dword [edx], 0
mov eax, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001c10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
movaps xmm0, xmmword [str._cYHYdCKB__LYDBe_OcGohoD__D]
xor eax, eax
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x18], 0x5f457943
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0x494c48
mov cl, byte [ebp - 0x28]
xor byte [ebp + eax - 0x27], cl
inc eax
cmp eax, 0x16
jb 0x10001c35
push ebx
mov byte [ebp - 0x10], 0x64
mov al, 0xa
xor al, byte [ebp - 0x10]
mov bl, 8
mov ah, bl
mov byte [ebp - 0xf], al
mov al, byte [ebp - 0x10]
mov bh, ah
mov byte [ebp - 1], ah
xor bl, al
xor ah, al
mov byte [ebp - 0x11], 0
xor bh, al
mov byte [ebp - 0xb], ah
mov cl, 0x10
mov byte [ebp - 0xc], bl
xor cl, al
mov byte [ebp - 8], bh
xor dl, dl
mov byte [ebp - 0xe], cl
xor dl, al
mov byte [ebp - 6], 0
mov ch, 0x4a
mov byte [ebp - 0xd], dl
xor ch, al
xor dh, dh
xor dh, al
mov byte [ebp - 0xa], ch
mov al, byte [ebp - 1]
xor al, byte [ebp - 0x10]
mov byte [ebp - 7], al
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0xf]
mov byte [ebp - 9], dh
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
pop ebx
test edi, edi
je 0x10001cdf
push 0
push 0
push 0x11
test esi, esi
jne 0x10001cd1
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
test eax, eax
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
push esi
call edi
test eax, eax
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10001cf0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
pushal
pushfd
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov esi, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebp - 8]
jne 0x10001d2e
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x10001d32
cmp edx, esi
jne 0x10001d17
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp - 8]
jne 0x10001d52
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x10001d56
cmp edx, esi
jne 0x10001d3b
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 8]
jne 0x10001d76
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x10001d7a
cmp edx, esi
jne 0x10001d5f
popfd
popal
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10006578
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100065b7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100065b7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100065b7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100065b7
cmp dword [ecx + 0x74], 0xe
jbe 0x100065b7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x10008ae7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10014ee0
push 0x10014ed8
push str.FlsAlloc
push 0x1f
call fcn.10008a03
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10008b1b
push dword [ebp + 8]
mov ecx, esi
call dword [0x10012148]
call esi
jmp 0x10008b21
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10008b65
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10014ef0
push 0x10014ee8
push str.FlsGetValue
push 0x21
call fcn.10008a03
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10008b9c
push dword [ebp + 8]
mov ecx, esi
call dword [0x10012148]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10008ba4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10014ef8
push 0x10014ef0
push str.FlsSetValue
push 0x22
call fcn.10008a03
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10008bde
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10012148]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000c42f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000c4cc
push ebx
push esi
call fcn.1000c3f8
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000b3bc
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000c479
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000c4cb
push edi
push eax
call fcn.10009eab
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000c499
call fcn.100088b0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000c4ca
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000b3bc
add esp, 0x20
test eax, eax
jne 0x1000c4b8
push edi
call fcn.100088b0
jmp 0x1000c4c0
push ebx
call fcn.100088b0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10010bd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10010bfd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10010bfd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4071a0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4072ac
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
test bl, bl
je 0x407220
movzx eax, bl
add ax, 0x41
dec eax
mov word [ebp - 0x10], ax
mov word [ebp - 0xe], 0x3a
mov word [ebp - 0xc], 0
lea eax, [ebp - 0x420]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
mov edi, eax
cmp edi, 0x104
jbe 0x407217
mov edx, edi
dec edx
lea eax, [ebp - 4]
call fcn.0040c75c
mov eax, dword [ebp - 4]
call fcn.0040c5d0
push eax
push edi
call sub.kernel32.dll_GetCurrentDirectoryW
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [ebp - 0x218]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
cmp esi, 0x104
ja 0x407250
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x218]
mov ecx, 0x104
call fcn.0040c684
jmp 0x40726c
mov edx, esi
dec edx
mov eax, dword [ebp - 8]
call fcn.0040c75c
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0040c5d0
push eax
push esi
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x407294
cmp edi, 0x104
jbe 0x407288
mov eax, dword [ebp - 4]
call fcn.0040c5d0
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
jmp 0x407294
lea eax, [ebp - 0x420]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4072b3
lea eax, [ebp - 4]
call fcn.0040bac8
pop eax
jmp eax

Function at 0x40749c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040bac8
test esi, esi
jne 0x4074d2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040bc60
jmp 0x4074f0
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004073e0
mov edi, eax
test esi, esi
je 0x4074f0
cmp dword [ebx], 0
je 0x4074f0
dec esi
jmp 0x4074d9
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x40a710
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.0040abd0
mov byte [esp], al
cmp byte [esp], 0
jne 0x40a899
test edi, edi
je 0x40a899
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40a7d9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x40a7b4
cmp edi, 0xffffffff
je 0x40a775
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40a775
mov byte [esp], 0
jmp 0x40a899
cmp dword [esi], 1
jg 0x40a7b4
cmp dword [esi], 0
jne 0x40a7a6
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40a7a6
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40a899
lea eax, [esp + 0xc]
call fcn.0040a3c0
dec ebp
test ebp, ebp
jg 0x40a75a
cmp edi, 0xffffffff
je 0x40a7d9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40a7d7
mov byte [esp], 0
jmp 0x40a899
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40a71e
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40a7d9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040a914
mov edx, eax
mov ebx, dword [0x6368fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40a83d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40a83b
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40a83d
xor edi, edi
cmp byte [esp], 0
je 0x40a863
mov ebx, dword [esi]
test bl, 1
jne 0x40a879
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40a843
mov byte [esp + 1], 1
jmp 0x40a879
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40a863
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40a7f0
cmp byte [esp], 0
je 0x40a899
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40b760
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x63605c], 0
je 0x40b7c7
cmp word [0x636348], 0xd7b2
jne 0x40b789
cmp dword [0x636350], 0
jbe 0x40b789
mov eax, 0x636344
call dword [0x636360]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x40b7f4
call fcn.0040c384
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x62c036], 0
jne 0x40b7e3
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40b988
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x62c038], 0
je 0x40b9b3
mov edx, edi
mov eax, esi
call dword [0x62c038]
mov ebx, eax
jmp 0x40b9c4
mov eax, 8
call fcn.00406ffc
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x63605d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40b950
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x40b9f4
mov eax, ebx
call fcn.00407018
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40f444
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40f5ab
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040bac8
cmp si, word [0x62cc18]
jb 0x40f4dc
cmp si, word [0x62ce18]
ja 0x40f4dc
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40f4dc
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x62cc18]
jae 0x40f4b6
mov edi, ebx
dec edi
jmp 0x40f4d7
cmp si, word [ebx*8 + 0x62cc18]
jbe 0x40f4c6
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40f4d7
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x62cc1c]
call fcn.0040f360
jmp 0x40f4dc
cmp edi, dword [ebp - 8]
jae 0x40f4a0
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40f58b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40f58b
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040c684
push dword [ebp - 0x160]
push 0x40f5c8
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040c684
push dword [ebp - 0x164]
push 0x40f5d8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040c684
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040c8bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f5b2
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040bb28
pop eax
jmp eax
Function at 0x40f760
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40f866
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x638c14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x638c2c]
jne 0x40f7ac
mov eax, esi
mov edx, 0x638c2e
mov ecx, 0x55
call fcn.0040c684
push 0x638c14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40f84e
push 0x638c14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040bac8
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40f81b
cmp byte [0x638c10], 0
je 0x40f7e0
mov edx, esi
mov eax, ebx
call fcn.0040f644
jmp 0x40f81b
mov edx, esi
mov eax, ebx
call fcn.0040f444
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40f81b
cmp dword [esi], 0
je 0x40f804
mov eax, esi
mov edx, 0x40f880
call fcn.0040c7dc
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040f444
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040c7dc
push 0x638c14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x638c2c], bx
mov eax, dword [esi]
call fcn.0040c5d0
mov ecx, eax
mov eax, 0x638c2e
mov edx, 0xaa
call fcn.0040f2c0
push 0x638c14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f86d
lea eax, [ebp - 4]
call fcn.0040bac8
pop eax
jmp eax