joyce8/EMBER2024-capa huggingface dataset:
Function at 0x470250
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ebx, ebx
push edi
xor edi, edi
mov dword [esi + 0x6af80], 2
lea ebp, [ebx + 1]
cmp dword [esi + 0x6af90], ebx
je 0x470472
cmp dword [esi + 0x6af90], 3
jb 0x4702c9
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov ebx, dword [esi + eax*4 + 0x4af70]
and ecx, 0x7fff
mov dword [esi + ecx*4 + 0x2af70], ebx
mov eax, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
test ebx, ebx
je 0x470309
mov edx, dword [esi + 0x6af84]
sub edx, ebx
cmp edx, 0x7efa
ja 0x470309
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x4702f1
mov dword [esi + 0x6afa0], eax
push ebx
push esi
call fcn.0046db00
mov edi, eax
mov eax, dword [esi + 0x6af90]
add esp, 8
cmp edi, eax
jbe 0x470309
mov edi, eax
cmp edi, 3
jb 0x4703ee
mov ecx, dword [esi + 0x6af84]
sub ecx, dword [esi + 0x6af88]
lea eax, [edi - 3]
push eax
push ecx
push esi
call fcn.0046d4b0
sub dword [esi + 0x6af90], edi
add esp, 0xc
mov edx, eax
mov eax, dword [esi + 0x6af90]
cmp edi, dword [esi + 0x6af98]
ja 0x4703a7
cmp eax, 3
jb 0x4703a7
sub edi, ebp
lea esp, [esp]
add dword [esi + 0x6af84], ebp
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [esi + ecx + 0x1af72]
mov ebx, dword [esi + 0x6af7c]
shl ebx, 5
xor eax, ebx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov ebx, dword [esi + eax*4 + 0x4af70]
and ecx, 0x7fff
sub edi, ebp
mov dword [esi + ecx*4 + 0x2af70], ebx
mov eax, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x470350
jmp 0x470410
add dword [esi + 0x6af84], edi
mov eax, dword [esi + 0x6af84]
lea ecx, [eax + esi]
movzx eax, byte [ecx + 0x1af70]
mov dword [esi + 0x6af7c], eax
movzx ecx, byte [ecx + 0x1af71]
shl eax, 5
push str.Call_UPDATE_HASH___MIN_MATCH_3_more_times
xor ecx, eax
and ecx, 0x7fff
push ebp
push esi
xor edi, edi
mov dword [esi + 0x6af7c], ecx
call fcn.0046d010
add esp, 0xc
jmp 0x470416
mov edx, dword [esi + 0x6af84]
movzx eax, byte [edx + esi + 0x1af70]
push eax
push 0
push esi
call fcn.0046d4b0
add esp, 0xc
dec dword [esi + 0x6af90]
mov edx, eax
add dword [esi + 0x6af84], ebp
test edx, edx
je 0x470450
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x47042d
lea ecx, [eax + esi + 0x1af70]
jmp 0x47042f
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 0
sub edx, eax
push edx
push ecx
push esi
call fcn.00470090
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x470465
push esi
call fcn.0046dce0
add esp, 4
cmp dword [esi + 0x6af90], 0
jne 0x470275
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x470485
lea ecx, [eax + esi + 0x1af70]
jmp 0x470487
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push ebp
sub edx, eax
push edx
push ecx
push esi
call fcn.00470090
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4717b0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x1cc
mov eax, dword [0x4aa3ec]
xor eax, esp
mov dword [esp + 0x1c8], eax
push ebx
push esi
lea eax, [esp + 0x40]
push eax
mov ebx, ecx
mov esi, dword [ebx + 0x284]
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4718cf
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push 0x43
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
test eax, eax
je 0x4718c9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x471832
call esi
cmp eax, 0x3e5
jne 0x4718c9
xor eax, eax
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x24]
mov word [esp + 0x24], ax
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov word [esp + 0x32], ax
mov eax, dword [esp + 0x14]
push edx
push eax
mov dword [esp + 0x14], 0x10
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
jne 0x4718c9
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x2c]
push eax
mov esi, eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], ecx
call dword [sym.imp.WS2_32.dll_ntohl]
push esi
call dword [sym.imp.WS2_32.dll_inet_ntoa]
lea ecx, [ebx + 0x124c]
mov edx, eax
mov esi, 0x40
sub edx, ecx
lea eax, [esi + 0x7fffffbe]
test eax, eax
je 0x4718c1
mov al, byte [edx + ecx]
test al, al
je 0x4718c1
mov byte [ecx], al
inc ecx
sub esi, 1
jne 0x4718a6
jmp 0x4718c5
test esi, esi
jne 0x4718c6
dec ecx
mov byte [ecx], 0
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x1d0]
pop esi
lea eax, [ebx + 0x124c]
pop ebx
xor ecx, esp
call fcn.004409d4
add esp, 0x1cc
ret

Function at 0x473ef0
Capabilities:
Send data

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
push esi
mov edi, ecx
call fcn.00473a00
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], esi
test esi, esi
je 0x473f71
mov ebp, dword [sym.imp.WININET.dll_InternetWriteFile]
mov ebx, dword [esp + 0x18]
mov ecx, dword [edi + 8]
lea eax, [esp + 0x18]
push eax
push esi
push ebx
push ecx
call ebp
test eax, eax
jne 0x473f45
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x473f59
mov edx, dword [esp + 0x1c]
push edx
mov ecx, edi
call fcn.00473e50
test eax, eax
jl 0x473f64
mov eax, dword [esp + 0x18]
add ebx, eax
sub esi, eax
je 0x473f71
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x473f17
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret 8
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
pop ecx
ret 8
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x473fd0
Capabilities:
Send data

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx + 8]
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 8]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x473a43
or eax, 0xffffffff
ret 8
mov eax, dword [esp + 8]
ret 8
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
mov eax, esi
cmp esi, 0x10000
jbe 0x473f98
mov eax, 0x10000
test esi, esi
jbe 0x473fc4
mov edi, dword [esp + 0x10]
push eax
push edi
mov ecx, ebx
call fcn.00473ef0
test eax, eax
jl 0x473fc6
sub esi, eax
add edi, eax
mov eax, esi
cmp esi, 0x10000
jb 0x473fc0
mov eax, 0x10000
test esi, esi
ja 0x473fa0
xor eax, eax
pop edi
pop esi
pop ebx
ret 8
cmp dword [ecx + 4], 0x10000000
jne 0x473fde
jmp 0x473f80
jmp 0x473a20

Function at 0x474090
Capabilities:
Read data from internet
Receive data

Disassembly:
sub esp, 0x28
mov ecx, dword [ecx + 8]
mov edx, dword [esp + 0x30]
xor eax, eax
mov dword [esp], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
push 0
mov dword [esp + 0x18], eax
push 0
lea eax, [esp + 8]
push eax
push ecx
mov dword [esp + 0x10], 0x28
mov dword [esp + 0x28], edx
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
jne 0x473ab4
or eax, 0xffffffff
add esp, 0x28
ret 8
mov eax, dword [esp + 0x18]
add esp, 0x28
ret 8
sub esp, 0x28
xor eax, eax
mov dword [esp], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
push esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
push edi
push eax
mov esi, ecx
mov dword [esp + 0xc], 0x28
mov dword [esp + 0x24], eax
call fcn.00473a00
mov edx, dword [esi + 8]
push esi
push 0
lea ecx, [esp + 0x10]
push ecx
push edx
mov edi, eax
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
jne 0x47407f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x47406e
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x28
ret 8
push edi
mov ecx, esi
call fcn.00473e50
test eax, eax
mov eax, 0xfffffffe
jl 0x474083
mov eax, dword [esp + 0x20]
pop edi
pop esi
add esp, 0x28
ret 8
cmp dword [ecx + 4], 0x10000000
jne 0x47409e
jmp 0x473ff0
jmp 0x473a50
Function at 0x476a20
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4aa3ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov cx, word [ebp + 0x10]
push edx
push 0x80
lea ebx, [esi + 0xc]
push ebx
mov dword [esi + 8], eax
mov word [esi + 0x8c], cx
call fcn.00402dc9
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x476a71
push edi
push 0x80
lea eax, [esi + 0x8e]
push eax
call fcn.00402dc9
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x476a8a
push eax
push 0x80
lea ecx, [esi + 0x10e]
push ecx
call fcn.00402dc9
test ebx, ebx
jne 0x476a99
mov dword [ebp - 0x10], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x476acf
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 8], eax
call fcn.00442a60
mov edx, dword [ebp - 8]
mov edi, esp
push 0
push 0
push edx
push edi
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
mov byte [edi], 0
call ebx
mov dword [ebp - 0x10], edi
mov edi, dword [ebp + 0x14]
xor ecx, ecx
cmp edi, ecx
jne 0x476ada
mov dword [ebp - 0xc], ecx
jmp 0x476b1c
lea eax, [esi + 0x8e]
cmp eax, ecx
jne 0x476ae9
mov dword [ebp - 0xc], ecx
jmp 0x476b1c
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 8], eax
call fcn.00442a60
mov eax, dword [ebp - 8]
mov edi, esp
push 0
push 0
push eax
push edi
push 0xffffffffffffffff
lea eax, [esi + 0x8e]
push eax
push 0
push 0
mov byte [edi], 0
call ebx
mov dword [ebp - 0xc], edi
cmp dword [ebp + 0x18], 0
jne 0x476b26
xor edi, edi
jmp 0x476b64
lea eax, [esi + 0x10e]
test eax, eax
jne 0x476b34
xor edi, edi
jmp 0x476b64
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 8], eax
call fcn.00442a60
mov ecx, dword [ebp - 8]
mov edi, esp
push 0
push 0
push ecx
push edi
push 0xffffffffffffffff
lea eax, [esi + 0x10e]
push eax
push 0
push 0
mov byte [edi], 0
call ebx
cmp dword [esi + 8], 0
jne 0x476b71
mov eax, 0xffffff9d
jmp 0x476ba7
mov edx, dword [esi + 0x190]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x10]
push 0
push 0
push edx
mov edx, dword [ebp - 0x10]
push edi
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 4], eax
test eax, eax
jne 0x476ba5
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xffffffff
jmp 0x476ba7
xor eax, eax
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004409d4
mov esp, ebp
pop ebp
ret 0x14
Function at 0x402edc
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403334
Capabilities:
Query or enumerate registry value

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

Function at 0x4040b0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x458048], 0
je 0x404111
cmp word [0x45821c], 0xd7b2
jne 0x4040d9
cmp dword [0x458224], 0
jbe 0x4040d9
mov eax, 0x458218
call dword [0x458234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x456070
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 0x404138
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x456034], 0
jne 0x40412d
push 0
push 0x456068
push 0x456070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405e58
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 0x405ebe
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.004044a4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ef8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405ea8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405ec5
lea eax, [ebp - 0x10]
call fcn.00404234
ret

Function at 0x40b03c
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 0x40b075
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404324
jmp 0x40b07e
mov eax, ebx
mov edx, esi
call fcn.00404288
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b740
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b5a8
mov eax, dword [0x4570b4]
cmp byte [eax], 0
je 0x40b7bc
mov eax, dword [0x456ed0]
call fcn.00402d48
call fcn.00402bc4
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.0040882c
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 0x40b804
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b7f2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x456e80]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x458664]
call fcn.004052c4
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 0x40c060
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 0x40c136
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004042cc
lea eax, [ebp - 8]
call fcn.00404744
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004046f4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c120
mov eax, ebx
call fcn.00402a38
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c119
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.004046f4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c103
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c148
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c103
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 0x40c120
mov eax, dword [ebp - 0x10]
call fcn.00402a68
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c13d
lea eax, [ebp - 8]
call fcn.00404234
ret

Function at 0x40c610
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 0x40c674
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.004044a4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004083a8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c67b
lea eax, [ebp - 0xc]
call fcn.00404234
ret

Function at 0x41b1d4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x458884
cmp dword [edi], 0
jne 0x41b250
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x458880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4563f0
mov ecx, 2
call fcn.00402c58
mov edx, 0x41b1ac
lea eax, [esi + 5]
call fcn.0041b1cc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b1cc
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 0x41b225
mov dword [0x458880], 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 0x41c474
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 0x41c47a
ret
Function at 0x41e928
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 0x41e979
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41e960
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41e950
jmp 0x41e979
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 0x41e961
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42ecc8
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 0x42ec14
call sub.user32.dll_EnumWindows
ret

Function at 0x42ede8
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 0x42ee65
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0042e848
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
cmp eax, 0x3e8
jbe 0x42ee0d
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0042e448
cmp dword [ebp - 4], 0
je 0x42ee4f
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.004046f4
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 0x42ee6c
lea eax, [ebp - 4]
call fcn.00404234
ret

Function at 0x431d10
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 [0x458b5c], 0
je 0x431e5f
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x457054]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x431e5f
mov eax, dword [0x458b60]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x458b5c]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x431e2e
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x458b5c]
call fcn.00413ffc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x431e26
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x431e26
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x431e26
mov eax, dword [ebp - 0x14]
call fcn.0043aabc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x431e26
push ebp
call fcn.00431ccc
pop ecx
test al, al
jne 0x431e26
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x431de2
mov eax, dword [ebp - 0x14]
call fcn.004395ec
dec eax
jle 0x431e26
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.004036c8
cmp byte [ebp - 1], 0
je 0x431e26
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x431e26
mov edx, dword [ebp - 0x14]
mov eax, dword [0x458b60]
call fcn.00431498
inc edi
dec ebx
jne 0x431d75
mov eax, dword [0x458b60]
cmp dword [eax + 8], 0
jle 0x431e46
mov eax, dword [0x458b60]
call fcn.00431528
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x431e5f
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00431b34
pop ecx
test al, al
jne 0x431e5f
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