joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f20
Capabilities:
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4e0
push 6
push 1
push 2
call sub.WS2_32.DLL_socket
mov ebx, eax
pop ecx
test eax, eax
js 0x402040
sub esp, 0xc
lea eax, [ebp - 0x10]
push 0
push 0
push eax
lea eax, [ebp - 0x4d0]
push 0x4c0
push eax
push 0
push 0
push 0x4004747f
push ebx
call sub.WS2_32.DLL_WSAIoctl
add esp, 0xc
test eax, eax
js 0x402050
mov edx, dword [ebp - 0x10]
mov eax, 0x1af286bd
shr edx, 2
sub esp, 0xc
mul edx
shr edx, 1
push ebx
mov dword [ebp - 0x10], edx
call sub.WS2_32.DLL_closesocket
mov eax, dword [ebp - 0x10]
lea eax, [eax*4 + 8]
push eax
call sub.msvcrt.dll_malloc
add esp, 0x10
mov edi, eax
test eax, eax
je 0x402063
sub esp, 0xc
push str.127.0.0.1
call sub.WS2_32.DLL_inet_addr
mov esi, dword [ebp - 0x10]
add esp, 0xc
mov dword [ebp - 0x4e0], eax
test esi, esi
jle 0x40205a
lea edx, [ebp - 0x4d0]
xor ecx, ecx
add edx, 4
xor ebx, ebx
jmp 0x401fe8
inc ecx
add edx, 0x4c
cmp ecx, esi
jge 0x402014
cmp word [edx], 2
jne 0x401fe0
mov eax, dword [edx + 4]
cmp eax, 0xffffffff
je 0x401fe0
mov dword [edi + ebx*4], eax
inc ebx
cmp dword [ebp - 0x4e0], eax
jne 0x401fe0
inc ecx
add edx, 0x4c
mov dword [ebp - 0x4e0], 0xffffffff
cmp ecx, esi
jl 0x401fe8
lea eax, [ebx*4]
lea edx, [ebx*4 + 4]
mov ecx, dword [ebp - 0x4e0]
mov dword [edi + eax], ecx
mov dword [edi + edx], 0xffffffff
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.00401aa0
jmp 0x401f42
call fcn.00401aa0
jmp 0x401f73
xor eax, eax
mov edx, 4
jmp 0x402022
call fcn.00401aa0
jmp 0x401fab
Function at 0x402240
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
mov word [ebp - 0x1e], ax
test edi, edi
je 0x402274
sub esp, 0xc
push edi
call fcn.00402070
add esp, 0x10
mov ebx, eax
cmp eax, 0xffffffff
je 0x402386
mov ax, word [ebp - 0x1e]
sub esp, 0xc
and eax, 0xffff
push eax
call sub.WS2_32.DLL_htons
add esp, 0xc
mov edi, eax
test esi, esi
jle 0x4022a7
mov eax, dword [ebp + 0x1c]
cmp dword [eax + 4], ebx
je 0x402350
sub esp, 0xc
push esi
call sub.WS2_32.DLL_closesocket
add esp, 0xc
mov eax, dword [0x40c030]
mov edx, dword [eax]
cmp edx, 0xffffffff
jne 0x40232b
mov eax, dword [ebp + 0x1c]
mov dword [eax + 4], ebx
mov word [eax + 2], di
mov word [eax], 2
push eax
push 6
push 1
push 2
call sub.WS2_32.DLL_socket
mov ebx, eax
mov esi, eax
pop edi
test eax, eax
js 0x402368
mov eax, dword [0x40c02c]
mov word [ebp - 0x1a], 0
mov dword [ebp - 0x18], eax
mov word [ebp - 0x1c], 2
lea eax, [ebp - 0x1c]
push ecx
push 0x10
push eax
push ebx
call sub.WS2_32.DLL_bind
pop edx
test eax, eax
js 0x402364
push edi
push 0x10
mov ecx, dword [ebp + 0x1c]
push ecx
push ebx
call sub.WS2_32.DLL_connect
pop edx
test eax, eax
js 0x402364
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [eax + 4]
cmp edx, 0xffffffff
je 0x4022b3
add eax, 4
cmp ebx, edx
jne 0x402320
push eax
push eax
push str.loopback_connections_not_allowed_n
or esi, 0xffffffff
mov eax, dword [ebp + 8]
push eax
call fcn.00401410
add esp, 0x10
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
cmp di, word [eax + 2]
jne 0x40229b
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
test ebx, ebx
jne 0x402375
lea esp, [ebp - 0xc]
or esi, 0xffffffff
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 0xc
or esi, 0xffffffff
push ebx
call sub.WS2_32.DLL_closesocket
add esp, 0xc
jmp 0x402313
push eax
push edi
push str.unknown_host___s__n
or esi, 0xffffffff
mov eax, dword [ebp + 8]
push eax
call fcn.00401410
add esp, 0x10
jmp 0x402313
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46f004]
jne 0x401010
repz ret
jmp fcn.0040147f

Function at 0x4077ce
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404b1e
and dword [ebp - 4], 0
cmp dword [0x471264], 0
mov ebx, eax
jne 0x40787f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407930
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407930
push eax
call fcn.00404aac
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x471264], eax
call esi
push eax
call fcn.00404aac
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x471268], eax
call esi
push eax
call fcn.00404aac
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x47126c], eax
call esi
push eax
call fcn.00404aac
pop ecx
mov dword [0x471274], eax
test eax, eax
je 0x40787f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404aac
pop ecx
mov dword [0x471270], eax
mov eax, dword [0x471270]
cmp eax, ebx
je 0x4078d7
cmp dword [0x471274], ebx
je 0x4078d7
push eax
call fcn.00404b27
push dword [0x471274]
mov esi, eax
call fcn.00404b27
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4078d7
test edi, edi
je 0x4078d7
call esi
test eax, eax
je 0x4078ce
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4078ce
test byte [ebp - 0xc], 1
jne 0x4078d7
or dword [ebp + 0x10], 0x200000
jmp 0x407910
mov eax, dword [0x471268]
cmp eax, ebx
je 0x407910
push eax
call fcn.00404b27
pop ecx
test eax, eax
je 0x407910
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407910
mov eax, dword [0x47126c]
cmp eax, ebx
je 0x407910
push eax
call fcn.00404b27
pop ecx
test eax, eax
je 0x407910
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x471264]
call fcn.00404b27
pop ecx
test eax, eax
je 0x407930
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407932
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4f0a10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9a000]
push edi
jmp 0x4f0a2a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4f0a31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f0a20
mov eax, 1
add ebx, ebx
jne 0x4f0a43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4f0a54
jne 0x4f0a73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f0a73
dec eax
add ebx, ebx
jne 0x4f0a60
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4f0a38
add ebx, ebx
jne 0x4f0a6f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4f0ac5
xor ecx, ecx
sub eax, 3
jb 0x4f0a8b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4f0afa
sar eax, 1
mov ebp, eax
jmp 0x4f0a96
add ebx, ebx
jne 0x4f0a96
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f0a64
inc ecx
add ebx, ebx
jne 0x4f0aa4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f0a64
add ebx, ebx
jne 0x4f0ab1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4f0aa6
jne 0x4f0ac2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4f0aa6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4f0ae4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4f0ad6
jmp 0x4f0a26
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4f0ae4
add edi, ecx
jmp 0x4f0a26
pop esi
mov edi, esi
mov ecx, 0x3ee5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4f0b02
cmp byte [edi], 0x11
jne 0x4f0b02
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 0x4f0b07
lea edi, [esi + 0xe9000]
mov eax, dword [edi]
or eax, eax
je 0x4f0b7f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x107cbc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x107e38]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4f0b34
mov ecx, edi
jns 0x4f0b63
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 + 0x107e3c]
or eax, eax
je 0x4f0b79
mov dword [ebx], eax
add ebx, 4
jmp 0x4f0b51
call dword [esi + 0x107e4c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4f0bb0
cmp al, 0xef
ja 0x4f0ba3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4f0b85
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4f0b92
mov ebp, dword [esi + 0x107e40]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x4f0be4
sub esp, 0xffffff80
jmp 0x427f4a
Function at 0x402ca4
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402ce1
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402d01
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404e6c
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402ee0
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 0x402f39
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402d7c
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402d7c
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402f23
inc ebx
jmp 0x402f0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402f40
lea eax, [ebp - 8]
call fcn.00404bec
ret

Function at 0x402f48
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404bec
test esi, esi
jne 0x402f7f
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.00404cdc
jmp 0x402fa0
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402d7c
mov dword [esp], eax
test esi, esi
je 0x402fa0
cmp dword [ebx], 0
je 0x402fa0
dec esi
jmp 0x402f87
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403cdc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x472020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403d74
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403d54
xor eax, eax
push ebp
push 0x403d4d
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 0x403d90
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 0x403d54
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x472020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x472020], ax
mov esp, ebp
pop ebp
ret
Function at 0x404a68
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47504c], 0
je 0x404ac9
cmp word [0x475220], 0xd7b2
jne 0x404a91
cmp dword [0x475228], 0
jbe 0x404a91
mov eax, 0x47521c
call dword [0x475238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x472090
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 0x404af0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x472030], 0
jne 0x404ae5
push 0
push 0x472088
push 0x472090
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406d38
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 0x406d9e
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.00404e6c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403738
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406d88
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406da5
lea eax, [ebp - 0x10]
call fcn.00404bec
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004050bc
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40987d
test al, 0x10
jne 0x409881
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c9b0
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 0x40c9e9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404cdc
jmp 0x40c9f2
mov eax, ebx
mov edx, esi
call fcn.00404c40
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40d200
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d068
mov eax, dword [0x474420]
cmp byte [eax], 0
je 0x40d27c
mov eax, dword [0x4741c0]
call fcn.00403394
call fcn.00402c24
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.00409bf0
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 0x40d2c4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d2b2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x474158]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x475668]
call fcn.004061a4
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 0x40db68
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 0x40dc3e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404c84
lea eax, [ebp - 8]
call fcn.0040510c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004050bc
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40dc28
mov eax, ebx
call fcn.00402a98
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40dc21
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.004050bc
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40dc0b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40dc50
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40dc0b
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 0x40dc28
mov eax, dword [ebp - 0x10]
call fcn.00402ac8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dc45
lea eax, [ebp - 8]
call fcn.00404bec
ret

Function at 0x40e118
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 0x40e17c
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.00404e6c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004094c4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e183
lea eax, [ebp - 0xc]
call fcn.00404bec
ret

Function at 0x40f2ec
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffc00
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.00404bec
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.004050bc
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
cmp ebx, 0x400
jge 0x40f331
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00404cdc
jmp 0x40f34a
mov edx, ebx
dec edx
mov eax, esi
call fcn.00405248
push ebx
mov eax, dword [esi]
call fcn.004050bc
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
add esp, 0x400
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x420940
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x47588c
cmp dword [edi], 0
jne 0x4209bc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x475888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x472420
mov ecx, 2
call fcn.00402d3c
mov edx, 0x420918
lea eax, [esi + 5]
call fcn.00420938
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00420938
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 0x420991
mov dword [0x475888], 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 0x421104
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004050bc
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x42115c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x47458c]
mov dl, 1
mov eax, dword [0x420cbc]
call fcn.0040d3c0
call fcn.00404600
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00420dc4
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4226e4
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 0x4226ea
ret

Function at 0x424b5c
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 0x424bad
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x424b94
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x424b84
jmp 0x424bad
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 0x424b95
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42d71c
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x42d668
call sub.user32.dll_EnumWindows
ret

Function at 0x42d83c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x42d8b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0042d29c
call sub.kernel32.dll_GetTickCount
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x42d861
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0042ce9c
cmp dword [ebp - 4], 0
je 0x42d8a3
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.004050bc
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d8c0
lea eax, [ebp - 4]
call fcn.00404bec
ret

Function at 0x430564
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x475b54], 0
je 0x4306b3
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4743a8]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x4306b3
mov eax, dword [0x475b58]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x475b54]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x430682
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x475b54]
call fcn.0041929c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x43067a
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x43067a
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x43067a
mov eax, dword [ebp - 0x14]
call fcn.00439114
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x43067a
push ebp
call fcn.00430520
pop ecx
test al, al
jne 0x43067a
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x430636
mov eax, dword [ebp - 0x14]
call fcn.00437c44
dec eax
jle 0x43067a
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.00404080
cmp byte [ebp - 1], 0
je 0x43067a
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x43067a
mov edx, dword [ebp - 0x14]
mov eax, dword [0x475b58]
call fcn.0042fcec
inc edi
dec ebx
jne 0x4305c9
mov eax, dword [0x475b58]
cmp dword [eax + 8], 0
jle 0x43069a
mov eax, dword [0x475b58]
call fcn.0042fd7c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4306b3
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00430388
pop ecx
test al, al
jne 0x4306b3
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret