joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457730
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4873ac]
cmp byte [eax + 0xc], 0
je 0x45789d
push 0x8000
call sub.KERNEL32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x457896
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [fcn.00488b90], 0
jne 0x457784
push 0x4578a4
call sub.KERNEL32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4578ac
push ebx
call sub.KERNEL32.dll_GetProcAddress_1
mov dword [fcn.00488b90], eax
cmp dword [0x486d20], 0
jne 0x45787f
push 0x4578bc
call sub.KERNEL32.dll_LoadLibraryA
mov dword [0x486d20], eax
cmp dword [0x486d20], 0
je 0x45787f
push 0x4578c8
mov eax, dword [0x486d20]
push eax
call sub.KERNEL32.dll_GetProcAddress_1
mov dword [0x488b94], eax
push 0x4578d8
mov eax, dword [0x486d20]
push eax
call sub.KERNEL32.dll_GetProcAddress_1
mov dword [0x488b98], eax
push 0x4578ec
mov eax, dword [0x486d20]
push eax
call sub.KERNEL32.dll_GetProcAddress_1
mov dword [0x488b9c], eax
push 0x457904
mov eax, dword [0x486d20]
push eax
call sub.KERNEL32.dll_GetProcAddress_1
mov dword [0x488ba0], eax
push 0x45791c
mov eax, dword [0x486d20]
push eax
call sub.KERNEL32.dll_GetProcAddress_1
mov dword [0x488ba4], eax
push 0x457930
mov eax, dword [0x486d20]
push eax
call sub.KERNEL32.dll_GetProcAddress_1
mov dword [0x488ba8], eax
push 0x457948
mov eax, dword [0x486d20]
push eax
call sub.KERNEL32.dll_GetProcAddress_1
mov dword [0x488bac], eax
push 0x457960
mov eax, dword [0x486d20]
push eax
call sub.KERNEL32.dll_GetProcAddress_1
mov dword [0x488bb0], eax
push 0x45797c
mov eax, dword [0x486d20]
push eax
call sub.KERNEL32.dll_GetProcAddress_1
mov dword [fcn.00488bb4], eax
push 0x457988
mov eax, dword [0x486d20]
push eax
call sub.KERNEL32.dll_GetProcAddress_1
mov dword [0x488bb8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45789d
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x458dcc
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004044a0
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x458e1b
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.USER32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404710
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x463830
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff68
push ebx
push esi
test dl, dl
je 0x463847
add esp, 0xfffffff0
call fcn.00403a2c
mov byte [ebp - 1], dl
mov esi, eax
xor edx, edx
mov eax, esi
call fcn.0041e2f0
mov dl, 1
mov eax, dword [0x41fe34]
call fcn.00421594
mov dword [esi + 0x38], eax
xor eax, eax
mov dword [esi + 0xd8], eax
mov dword [esi + 0xdc], eax
mov byte [esi + 0xb8], 0
mov eax, dword [0x487388]
mov eax, dword [eax]
mov edx, dword [eax + 0x88]
mov eax, dword [esi + 0x38]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esi + 4]
mov edx, dword [0x43a858]
call fcn.004038b0
mov dword [esi + 0x34], eax
mov byte [esi + 0x65], 1
mov dword [esi + 0x3c], 0xff00000f
mov dword [esi + 0x40], 0xff00000f
mov dword [esi + 0x54], 0xff00000d
mov dword [esi + 0x50], 0xff00000d
mov dword [esi + 0x44], 0xff00000f
mov dword [esi + 0x58], 0xff000003
mov dword [esi + 0x4c], 0xff00000f
mov dword [esi + 0x48], 0xff00000d
mov eax, dword [esi + 0x38]
mov eax, dword [eax + 0x18]
mov dword [esi + 0x5c], eax
mov byte [esi + 0xa7], 0xa
mov byte [esi + 0xa8], 0x1e
mov dword [esi + 0x60], 0x18
mov byte [esi + 0x64], 1
mov dx, word [0x463a0c]
mov eax, esi
call fcn.00467a64
mov edx, dword [0x463a10]
mov eax, esi
call fcn.00467abc
mov ebx, dword [esi + 0x34]
test ebx, ebx
je 0x46392f
mov eax, ebx
call fcn.0043f6d0
mov edx, eax
mov eax, esi
call fcn.00466944
mov byte [esi + 0x66], 0
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call sub.KERNEL32.dll_GetVersionExA
mov byte [esi + 0xb6], 0
mov byte [esi + 0xb5], 0
mov byte [esi + 0xb7], 0
cmp dword [ebp - 0x88], 2
jne 0x4639a0
mov byte [esi + 0xb7], 1
cmp dword [ebp - 0x94], 5
jne 0x463987
cmp dword [ebp - 0x90], 0
jne 0x463987
mov byte [esi + 0xb5], 1
cmp dword [ebp - 0x94], 5
jne 0x4639a0
cmp dword [ebp - 0x90], 1
jne 0x4639a0
mov byte [esi + 0xb6], 1
test byte [esi + 0x1c], 0x10
jne 0x4639ab
call fcn.00463788
mov dword [esi + 0xbc], 0xe2d6d1
mov dword [esi + 0xc0], 0xd2bdb6
xor eax, eax
mov dword [esi + 0xc4], eax
xor eax, eax
mov dword [esi + 0xc8], eax
mov dword [esi + 0xcc], 0xff000005
mov dword [esi + 0xd0], 0xff000005
xor eax, eax
mov dword [esi + 0xd4], eax
mov eax, esi
cmp byte [ebp - 1], 0
je 0x463a02
call fcn.00403a84
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4681e8
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov ecx, edx
test ecx, ecx
js 0x4681fe
mov ebx, dword [eax + ecx*4]
dec ecx
push ebx
jns 0x4681f7
mov eax, esp
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov edi, esi
test edi, edi
jl 0x46825a
inc edi
mov ebx, dword [ebp - 4]
mov eax, dword [ebx]
call fcn.004212a8
mov ecx, eax
mov eax, ecx
and eax, 0xff
cdq
idiv esi
add dword [ebp - 8], eax
mov eax, ecx
and eax, 0xff00
shr eax, 8
cdq
idiv esi
add dword [ebp - 0xc], eax
mov eax, ecx
and eax, 0xff0000
shr eax, 0x10
cdq
idiv esi
add dword [ebp - 0x10], eax
add ebx, 4
dec edi
jne 0x46821e
mov cl, byte [ebp - 0x10]
mov dl, byte [ebp - 0xc]
mov al, byte [ebp - 8]
call fcn.00407214
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x46ccd8
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x414fc0]
call fcn.00404e10
xor eax, eax
push ebp
push 0x46ce1c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x486e38], 0
jne 0x46cd2b
mov ecx, dword [0x486f70]
mov dl, 1
mov eax, dword [0x4077a8]
call fcn.0040bf78
call fcn.00403e94
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00403104
mov eax, ebx
call fcn.00404cdc
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x46ce2c
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405e50
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404cec
test eax, eax
jle 0x46cdc3
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.KERNEL32.dll_GetComputerNameA
test eax, eax
je 0x46cdbc
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404728
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404710
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408620
test eax, eax
jne 0x46cdbc
mov ebx, 0x15
jmp 0x46cdc8
mov ebx, 0x10
jmp 0x46cdc8
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x486e38]
call fcn.0046cc30
mov eax, dword [ebp - 8]
call fcn.0046cc30
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405e68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ce23
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004044c4
lea eax, [ebp - 0x10]
mov edx, dword [0x414fc0]
call fcn.00404ee0
ret
Function at 0x4a2a55
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.004a2ad4
jae 0x4a2a61
xor ecx, ecx
call fcn.004a2ad4
jae 0x4a2a8b
xor eax, eax
call fcn.004a2ad4
jae 0x4a2a9c
mov al, 0x10
call fcn.004a2ad4
adc al, al
jae 0x4a2a7d
jne 0x4a2ac9
stosb byte es:[edi], al
jmp 0x4a2a62
call fcn.004a2ae0
dec ecx
loop 0x4a2aa8
mov eax, ebp
call fcn.004a2ade
jmp 0x4a2aca
lodsb al, byte [esi]
shr eax, 1
je 0x4a2af0
adc ecx, 2
mov ebp, eax
jmp 0x4a2aca
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.004a2ade
cmp eax, 0x7d00
jae 0x4a2ac8
cmp eax, 0x500
jae 0x4a2ac9
cmp eax, 0x7f
ja 0x4a2aca
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4a2a62
pop ebp
ret 8
Function at 0x4091b8
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 0x4091f1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404290
jmp 0x4091fa
mov eax, ebx
mov edx, esi
call fcn.004041f4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409204
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 0x409225
mov al, byte [esp]
jmp 0x409227
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4098ac
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409724
mov eax, dword [0x41e718]
cmp byte [eax], 0
je 0x409919
mov eax, dword [0x41e630]
call fcn.00402c3c
call fcn.00402810
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00407b4c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
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 0x409960
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40994f
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x41e60c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x41f710]
call fcn.00405784
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 0x40a3f4
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 0x40a458
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.00404408
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040789c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a45f
lea eax, [ebp - 0xc]
call fcn.004041a0
ret
Function at 0x41dd40
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, eax
cmp byte [0x41fa18], 0
jne 0x41de06
push 0x41de38
push 8
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov dword [0x41fa1c], eax
cmp dword [0x41fa1c], 0
je 0x41de00
push 8
push 0
push 0
push 2
mov eax, dword [0x41fa1c]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x41ddf9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x41ddde
mov eax, dword [ebp - 8]
mov dword [eax + 4], ebx
push 0
mov eax, dword [0x41f710]
push eax
mov eax, 0x41dc54
push eax
push 2
call sub.user32.dll_SetWindowsHookExA
mov dword [0x41fa14], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x41fa14]
mov dword [eax], edx
mov byte [0x41fa18], 1
mov byte [ebp - 1], 1
jmp 0x41dde2
mov byte [ebp - 1], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41de2f
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
mov byte [ebp - 1], 0
jmp 0x41de2f
mov eax, dword [0x41fa14]
push eax
call sub.user32.dll_UnhookWindowsHookEx
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
xor al, 1
mov byte [0x41fa18], al
mov eax, dword [0x41fa1c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, byte [ebp - 1]
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x402ed8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404bdc
test esi, esi
jne 0x402f0e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404ccc
jmp 0x402f2c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402d8c
mov edi, eax
test esi, esi
je 0x402f2c
cmp dword [ebx], 0
je 0x402f2c
dec esi
jmp 0x402f15
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403560
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4e6008], 0x8088405
inc edx
mov dword [ebx + 0x4e6008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x40357c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4e6008], 0x8088405
inc edx
mov dword [ebx + 0x4e6008], edx
fld qword [ebx + 0x4e606c]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret

Function at 0x403b70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4e6024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403c08
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403be8
xor eax, eax
push ebp
push 0x403be1
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 0x403c24
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 0x403be8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4e6024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4e6024], ax
mov esp, ebp
pop ebp
ret

Function at 0x4049bc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4f004c], 0
je 0x404a1d
cmp word [0x4f0220], 0xd7b2
jne 0x4049e5
cmp dword [0x4f0228], 0
jbe 0x4049e5
mov eax, 0x4f021c
call dword [0x4f0238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4e609c
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 0x404a44
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4e6034], 0
jne 0x404a39
push 0
push 0x4e6094
push 0x4e609c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404b90
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.00402adc
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4f004d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404b58
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406f64
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 0x406fca
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.00404e4c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403734
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406fb4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406fd1
lea eax, [ebp - 0x10]
call fcn.00404bdc
ret

Function at 0x40f330
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 0x40f369
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404ccc
jmp 0x40f372
mov eax, ebx
mov edx, esi
call fcn.00404c30
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40f37c
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 0x40f39d
mov al, byte [esp]
jmp 0x40f39f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40fa24
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40f89c
mov eax, dword [0x4eeeac]
cmp byte [eax], 0
je 0x40faa0
mov eax, dword [0x4eeae0]
call fcn.004032dc
call fcn.00402cac
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.0040c2b4
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 0x40fae8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40fad6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4eea44]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4f0668]
call fcn.0040645c
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 0x4103a8
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 0x41047e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404c74
lea eax, [ebp - 8]
call fcn.004050ec
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040509c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x410468
mov eax, ebx
call fcn.00402adc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x410461
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.0040509c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x41044b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x410490
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x41044b
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 0x410468
mov eax, dword [ebp - 0x10]
call fcn.00402afc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410485
lea eax, [ebp - 8]
call fcn.00404bdc
ret

Function at 0x410a04
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 0x410a68
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.00404e4c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040bbb8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410a6f
lea eax, [ebp - 0xc]
call fcn.00404bdc
ret

Function at 0x426d14
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x426d61
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.00426b54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x426d79
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x426d80
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.00426b54
dec esi
jne 0x426da2
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x428504
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4f2ab4
cmp dword [edi], 0
jne 0x428580
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4f2ab0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4e6e04
mov ecx, 2
call fcn.00402d4c
mov edx, 0x4284dc
lea eax, [esi + 5]
call fcn.004284fc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004284fc
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x428555
mov dword [0x4f2ab0], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x429bd4
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 0x429bda
ret

Function at 0x42c070
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 0x42c0c1
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x42c0a8
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x42c098
jmp 0x42c0c1
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 0x42c0a9
pop ebx
mov esp, ebp
pop ebp
ret