joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5934c1
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x608ec4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.005892c8
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.005892c8
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x593538
cmp word [ecx], dx
je 0x593538
mov eax, dword [0x5db484]
push edi
dec eax
push eax
push 0x5db370
call fcn.0059345a
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x5935ab
cmp word [eax], dx
je 0x5935ab
mov eax, dword [edi]
test eax, eax
je 0x59355c
cmp word [eax], dx
je 0x59355c
lea eax, [ebp - 0x10]
push eax
call fcn.00592e40
jmp 0x593565
lea eax, [ebp - 0x10]
push eax
call fcn.00592edb
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x5935d5
mov eax, dword [0x5db36c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x5db060
call fcn.0059345a
add esp, 0xc
test al, al
je 0x5935d5
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x5935a0
cmp word [eax], di
je 0x5935a0
lea eax, [ebp - 0x10]
push eax
call fcn.00592e40
pop ecx
jmp 0x5935d7
lea eax, [ebp - 0x10]
push eax
call fcn.00592edb
jmp 0x59359d
mov eax, dword [edi]
test eax, eax
je 0x5935c2
cmp word [eax], dx
je 0x5935c2
lea eax, [ebp - 0x10]
push eax
call fcn.00592df5
pop ecx
jmp 0x5935d5
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x5936a0
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.005932df
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x5936a0
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x5936a0
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x5936a0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x59362d
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0058b187
test ebx, ebx
je 0x59369b
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0058b187
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5936a0
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5936a0
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0057b9d0
add esp, 0x10
xor eax, eax
inc eax
jmp 0x5936a2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056ee93
leave
ret
Function at 0x598fc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x598fed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x598fed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x48ee74
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a9b30]
jne 0x48ee7e
repz ret
jmp fcn.00493927

Function at 0x491ab1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a9b30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0048c052
and dword [ebp - 0x14], 0
cmp dword [0x4acb0c], 0
mov dword [ebp - 0x18], eax
jne 0x491b64
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x491c0c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x491c0c
mov esi, dword [fcn.00488080]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4acb0c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4acb10], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4acb14], eax
call edi
push eax
call esi
mov dword [0x4acb1c], eax
test eax, eax
je 0x491b64
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4acb18], eax
mov eax, dword [0x4acb18]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.00488084]
cmp eax, ecx
je 0x491bbd
cmp dword [0x4acb1c], ecx
je 0x491bbd
push eax
call esi
push dword [0x4acb1c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x491bbd
test ebx, ebx
je 0x491bbd
call edi
test eax, eax
je 0x491bb4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x491bb4
test byte [ebp - 8], 1
jne 0x491bbd
or dword [ebp + 0x10], 0x200000
jmp 0x491bf0
mov eax, dword [0x4acb10]
cmp eax, dword [ebp - 0x18]
je 0x491bf0
push eax
call esi
test eax, eax
je 0x491bf0
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x491bf0
mov eax, dword [0x4acb14]
cmp eax, dword [ebp - 0x18]
je 0x491bf0
push eax
call esi
test eax, eax
je 0x491bf0
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4acb0c]
call esi
test eax, eax
je 0x491c0c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x491c0e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048ee74
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x40c739
Capabilities:
Encode data using xor
Encrypt data using chaskey
Hash data using murmur3

Disassembly:
test eax, 0x952cbc37
ja 0x40c747
or ecx, 0xfbb3ff49
rol esi, 0x19
shl esi, 0x18
add edx, 0x93af6062
call fcn.0045ef5d
shr ecx, 3
sub edx, 0xa7a2055f
mov byte [0x33dd0ba7], al
idiv byte [esi - 0x20faeb7f]
call fcn.004413f2
dec eax
and edx, eax
sub ebx, esp
mov eax, edi
mov ecx, 0x76b12ac4
xor edx, 0xfc7acdc
neg ebx
and esi, esi
xchg ebx, esi
neg esi
add dword [0x579cbe], edx
sub edi, 0x494d2605
ror eax, 4
call fcn.00516636
shl edx, 0x16
dec esi
shl eax, 0x17
inc ebx
dec ecx
jne 0x40c77b
mov ecx, 0x77675da0
or edi, 0x9364dac4
not edx
shr eax, 0x12
mov edx, 0x85cd2d1f
and ebx, 0xafc8887a
enter 0xfffffffffffff7af, 5
mov ecx, 0xd80056cd
aam 0xd0
xchg ecx, eax
jno 0x40c7d2
xchg ebx, esi
ror ebx, 0x10
inc edx
ror eax, 9
dec ebx
not ebx
sub dword [0x579b48], ebx
dec ecx
jne 0x40c7ae
add eax, edi
xor edi, esi
inc eax
mov edx, esi
add esi, esp
neg edi
shl eax, 7
neg esi
add dword [0x579c6e], edx
mov ebx, 0x2f0411de
inc ecx
add ecx, eax
call fcn.00516636
shr esi, 0xc
mov edi, 0x5bec60de
not esi
invalid
mov bh, byte [edi]

Function at 0x40c7c2
Capabilities:
Encrypt data using chaskey
Hash data using murmur3

Disassembly:
enter 0xfffffffffffff7af, 5
mov ecx, 0xd80056cd
aam 0xd0
xchg ecx, eax
Function at 0x40c859
Capabilities:
Hash data using murmur3

Disassembly:
call fcn.00427d16
call fcn.00423b8b
call fcn.004c9e40
ror edx, 0x14
xchg ebx, esi
call fcn.004327d6
rol eax, 0x13
sub eax, esp
call fcn.004d85c9
xor eax, esp
rol ecx, 0x1e
inc edi
not esi
inc ebx
rol edi, 0xe
xchg ebx, edx
neg edi
not esi
or edi, 0x34c89b6c
dec eax
neg edi
or edi, dword [0x579ede]
add ecx, 0x56f437c4
sub esi, dword [0x579d97]
dec esi
rol eax, 0x1c
call fcn.0048fffa
or ebx, dword [0x579f18]
xor esi, 0x91bf2427
or edx, dword [0x579dd2]
add esi, 0xd47b890c
xor edx, 0xb34cbd8b
add dword [0x579c16], eax
sub esi, edx
rol ecx, 0x1f
mov dword [0x579a4e], eax
ror ecx, 0x1f
add esi, edx
xor dword [0x579b34], eax
xor edx, 0xb34cbd8b
sub esi, 0xd47b890c
xor esi, 0x91bf2427
call fcn.004dda2b
ror eax, 0x1c
inc esi
sub ecx, 0x56f437c4
neg edi
inc eax
sub edi, 0x7fecfbbe
neg ebx
xchg edi, edx
inc ecx
add dword [0x579c42], esi
sub edi, 0x539bad49
not edx
call fcn.0041e4e2
xor esi, 0x5b26cc98
dec ecx
or ecx, dword [0x579f5e]
or ecx, dword [0x579e4a]
dec ebx
mov dword [0x579b7b], ebx
add edi, 0x26aa6eb2
call fcn.0048159e
call fcn.004f78ba
sub edi, 0x26aa6eb2
mov dword [0x579b97], ecx
inc ebx
inc ecx
xor esi, 0x5b26cc98
call fcn.004201a9
not edx
add edi, 0x539bad49
add dword [0x579a89], ecx
dec ecx
xchg edi, edx
neg ebx
push edi
add dword [0x579ba3], 0x7e75acce
dec ebx
not esi
sub ecx, dword [0x579e1e]
add edi, ebx
sub edi, dword [0x579f88]
sub dword [0x579c18], edi
ror edi, 4
xor esi, esp
rol edi, 7
xor ebx, 0xda1c321e
sub edx, esi
add edx, 0x32b71c51
inc ebx
xor edx, dword [0x579e09]
dec ebx
sub edx, 0x32b71c51
add edx, esi
xor ebx, 0xda1c321e
ror edi, 7
xor esi, esp
rol edi, 4
sub edi, ebx
not esi
inc ebx
add dword [0x579a81], 0x3172a667
mov edx, 0x2a9191c8
xchg ecx, eax
dec ebx
call fcn.004fe061
xor ebx, 0x5b24a39
or ebx, dword [0x579f0e]
call fcn.00504379
xor eax, 0xf4ace7d4
or dword [0x579a84], ebx
inc ecx
inc ebx
inc ecx
dec ecx
add esi, 0x12d87a0a
xor esi, dword [0x579e25]
call fcn.004a8a2e
xor esi, dword [0x579f72]
sub esi, 0x12d87a0a
inc ecx
dec ecx
dec ebx
dec ecx
add dword [0x579cc3], edx
xor eax, 0xf4ace7d4
call fcn.00492c9e
xor ebx, 0x5b24a39
call fcn.00454cbb
inc ebx
xchg ecx, eax
sub edx, 0x66a98bf6
xor eax, esp
xor edi, dword [0x579d56]
xor eax, dword [0x579da0]
add ebx, edx
or esi, dword [0x579e50]
add esi, 0x12b112e8
sub edx, 0xe6fc43b5
xor ebx, esi
xchg edi, esi
or ecx, dword [0x579eac]
sub ebx, edx
call fcn.004b8a0a
call fcn.004f2cb1
add ebx, edx
xchg edi, esi
xor ebx, esi
add edx, 0xe6fc43b5
sub esi, 0x12b112e8
sub ebx, edx
xor eax, esp
add edx, 0x3c182a2e
ror esi, 1
dec edx
xor dword [0x579a71], edx
dec ebx
sub ebx, eax
xchg edi, esi
add ecx, dword [0x579f42]
rol eax, 3
xor dword [0x579b94], eax
sub edi, dword [0x579eb6]
invalid
invalid
mov bl, 0x29

Function at 0x40cad9
Capabilities:
Hash data using murmur3

Disassembly:
inc ecx
mov byte [ecx - 0x332a5915], al
cmp eax, 0xd5a6c381
int3
Function at 0x45db97
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004dc52f
call fcn.00415dad
cmp dword [eax + 0x14], 0
jne 0x45dbb4
mov ecx, esi
pop esi
jmp fcn.0045d69c
pop esi
ret

Function at 0x461226
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00416e9e
call fcn.00415dad
cmp dword [eax + 0x14], 0
jne 0x461243
mov ecx, esi
pop esi
jmp fcn.00460bf9
pop esi
ret

Function at 0x4713d1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4713eb
call fcn.0041637c
mov esi, dword [eax + 0xc]
push dword [0x575d58]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x471409
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x471401
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x471436
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x471403
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004712ff
mov esi, eax
jmp 0x471428

Function at 0x4e7d37
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4e7d4f
mov edi, dword [esi + 0xc]
jmp 0x4e7d8f
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4e7d68
call fcn.0040bb2a
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4e7d7d
call fcn.0040bb2a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4e7d8f
call fcn.0040bb2a
call fcn.0041637c
cmp dword [eax + 0x3c], 0
je 0x4e7da4
push edi
mov ecx, ebx
call fcn.004e6bf3
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004e7c51
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4e7dc2
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4e7dce
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x5010b8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x570df0]
jne 0x5010c2
repz ret
jmp fcn.00507c43
Function at 0x402e0c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402e65
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402ca8
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402ca8
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402e4f
inc ebx
jmp 0x402e38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402e6c
lea eax, [ebp - 8]
call fcn.004044c8
ret

Function at 0x402e74
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004044c8
test esi, esi
jne 0x402eab
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.004045b8
jmp 0x402ecc
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402ca8
mov dword [esp], eax
test esi, esi
je 0x402ecc
cmp dword [ebx], 0
je 0x402ecc
dec esi
jmp 0x402eb3
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x40353c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x463020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4035d4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4035b4
xor eax, eax
push ebp
push 0x4035ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4035f0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4035b4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x463020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x463020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4042c0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46504c], 0
je 0x404321
cmp word [0x465220], 0xd7b2
jne 0x4042e9
cmp dword [0x465228], 0
jbe 0x4042e9
mov eax, 0x46521c
call dword [0x465238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46306c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404348
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x463030], 0
jne 0x40433d
push 0
push 0x463064
push 0x46306c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40447c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402a48
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x46504d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404444
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4064d8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40653e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404738
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403100
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406528
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406545
lea eax, [ebp - 0x10]
call fcn.004044c8
ret

Function at 0x408e0c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404988
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408e25
test al, 0x10
jne 0x408e29
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40bb30
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40bb69
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004045b8
jmp 0x40bb72
mov eax, ebx
mov edx, esi
call fcn.0040451c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bb7c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40bb9d
mov al, byte [esp]
jmp 0x40bb9f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c234
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c09c
mov eax, dword [0x464924]
cmp byte [eax], 0
je 0x40c2b0
mov eax, dword [0x464670]
call fcn.00402f6c
call fcn.00402bd4
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004091d0
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40c2f8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c2e6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x464604]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x465668]
call fcn.00405944
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40cb9c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40cc72
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404560
lea eax, [ebp - 8]
call fcn.004049d8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404988
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cc5c
mov eax, ebx
call fcn.00402a48
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cc55
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404988
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cc3f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cc84
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cc3f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc5c
mov eax, dword [ebp - 0x10]
call fcn.00402a78
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc79
lea eax, [ebp - 8]
call fcn.004044c8
ret

Function at 0x40d1c0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40d224
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404738
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408a38
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d22b
lea eax, [ebp - 0xc]
call fcn.004044c8
ret

Function at 0x41dc4c
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041daa4
dec esi
jne 0x41dc6e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x41edc8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
lea ebx, [ebp - 0xc]
mov esi, 0x46588c
cmp dword [esi], 0
jne 0x41ee6e
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x465888]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x46347c
mov ecx, 2
call fcn.00402c68
mov edx, 0x41eda0
mov eax, dword [ebp - 8]
add eax, 5
call fcn.0041edc0
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebx], eax
mov eax, dword [ebx]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebx]
call fcn.0041edc0
mov edx, dword [ebx]
mov dword [edx + 1], eax
mov eax, dword [ebx]
mov edx, dword [esi]
mov dword [eax + 5], edx
mov eax, dword [ebx]
mov dword [esi], eax
add dword [ebx], 0xd
mov eax, dword [ebx]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x41ee35
mov eax, dword [ebp - 8]
mov dword [0x465888], eax
mov eax, dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebx]
mov eax, dword [eax + 5]
mov dword [esi], eax
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4200bc
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4200c2
ret

Function at 0x42256c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4225bd
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4225a4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x422594
jmp 0x4225bd
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4225a5
pop ebx
mov esp, ebp
pop ebp
ret