joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424f80
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
sub esp, 0x80c
cmp dword [0x7b33c4], 0x37
jne 0x425016
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCommState]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
lea eax, [esp + 0x410]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReplaceFileA]
mov ecx, dword [0x7b43b8]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x434414]
mov byte [ecx + esi], al
add esp, 0x80c
ret
Function at 0x4252a0
Capabilities:
Accept command line arguments
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x7b33c4]
sub esp, 0x97c
push ebx
push ebp
push esi
shr eax, 3
xor esi, esi
push edi
mov edi, dword [0x434414]
cmp eax, esi
jbe 0x4254aa
mov dword [esp + 0x34], 0x9e3779b9
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], eax
jmp 0x4252e6
mov edi, dword [esp + 0x28]
xor esi, esi
cmp dword [0x7b33c4], 0x1c
jne 0x4252fd
lea eax, [esp + 0x40]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov edx, dword [0x42b2b4]
mov edi, dword [0x42b2b0]
mov ebx, dword [0x42b2b8]
mov ebp, dword [0x42b2bc]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], 0xc6ef3720
mov dword [esp + 0x38], edx
mov dword [esp + 0x2c], 0x20
jmp 0x42533e
mov eax, dword [esp + 0x1c]
xor esi, esi
mov ecx, eax
shr ecx, 5
add ecx, ebp
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x14]
mov edx, eax
shl edx, 4
add edx, ebx
add ecx, eax
xor edx, ecx
mov dword [esp + 0x10], edx
mov dword [0x7b3334], esi
mov eax, dword [esp + 0x24]
add dword [0x7b3334], eax
mov edx, dword [0x7b3334]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x3c]
add dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x24]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
sub dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov eax, ecx
shl eax, 4
add eax, edi
add esi, ecx
cmp dword [0x7b33c4], 0x1be
mov dword [esp + 0x10], eax
jne 0x4253d8
lea eax, [esp + 0x44]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
shr ecx, 5
add ecx, dword [esp + 0x38]
cmp dword [0x7b33c4], 0x979
mov dword [0x7b3338], 0xff6b3619
mov dword [0x7b333c], 0xffffffff
mov dword [esp + 0x24], ecx
jne 0x425419
push 0
lea ecx, [esp + 0x18c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameW]
mov eax, dword [esp + 0x10]
xor eax, esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x34]
add dword [esp + 0x20], eax
sub dword [esp + 0x14], eax
dec dword [esp + 0x2c]
jne 0x425338
cmp dword [0x7b33c4], 0x8d4
jne 0x42545f
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [esi], edx
mov dword [esi + 4], eax
cmp dword [0x7b33c4], 0x17
jne 0x425499
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
lea ecx, [esp + 0x48]
push ecx
push 0x403f20
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add esi, 8
dec dword [esp + 0x30]
mov dword [esp + 0x28], esi
jne 0x4252e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x97c
ret
Function at 0x401354
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401366
mov eax, dword [0x46e08b]
shl eax, 2
mov dword [0x46e08f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00462198
pop edx
call fcn.004620fc
call fcn.004621d8
push 0
call fcn.004636a8
pop ecx
push 0x46e034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x46e093], eax
push 0
jmp fcn.004687e8

Function at 0x403230
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffad4
lea eax, [ebp - 0x194]
push eax
push 2
call sub.WSOCK32.DLL_WSAStartup
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40327f
push 0x48668a
lea edx, [ebp - 0x151c]
push edx
call fcn.00464204
add esp, 8
lea ecx, [ebp - 0x151c]
push ecx
call fcn.0040305c
pop ecx
xor eax, eax
jmp 0x40333b
push 0
push 1
push 2
call sub.WSOCK32.DLL_socket
mov dword [0x486674], eax
cmp dword [0x486674], 0xffffffff
jne 0x4032c2
push str.ERROR:_JCSIMU_open_socket_WSAStartup_failed
lea edx, [ebp - 0x151c]
push edx
call fcn.00464204
add esp, 8
lea ecx, [ebp - 0x151c]
push ecx
call fcn.0040305c
pop ecx
call fcn.00403214
xor eax, eax
jmp 0x40333b
mov word [ebp - 0x152c], 2
push 0x1f72
call sub.WSOCK32.DLL_htons
mov word [ebp - 0x152a], ax
push 0x4866e2
call sub.WSOCK32.DLL_inet_addr
mov dword [ebp - 0x1528], eax
push 0x10
lea edx, [ebp - 0x152c]
push edx
push dword [0x486674]
call sub.WSOCK32.DLL_connect
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x403339
call sub.WSOCK32.DLL_WSAGetLastError
push eax
push str.ERROR:_JCSIMU_open_socket_connect_socket:__d
lea ecx, [ebp - 0x151c]
push ecx
call fcn.00464204
add esp, 0xc
lea eax, [ebp - 0x151c]
push eax
call fcn.0040305c
pop ecx
call fcn.00403214
xor eax, eax
jmp 0x40333b
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x404380
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x404389
mov eax, dword [ebp - 4]
add esp, 0xfffffb58
push esi
push edi
mov esi, 0x486955
lea edi, [ebp - 0x124]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 4]
push eax
push 0x1000
lea edx, [ebp - 0x24ac]
push edx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x4044d1
mov ecx, dword [ebp - 4]
shr ecx, 2
mov dword [ebp - 8], ecx
xor eax, eax
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 8]
jae 0x4044d1
mov ecx, dword [ebp - 0x14]
cmp dword [ebp + ecx*4 - 0x24ac], 0
je 0x4044c2
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + eax*4 - 0x24ac]
mov dword [ebp - 0xc], edx
push dword [ebp - 0xc]
push 0
push 0x410
call sub.KERNEL32.DLL_OpenProcess
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40444a
lea ecx, [ebp - 4]
push ecx
push 4
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x18]
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x40444a
push 0x104
lea edx, [ebp - 0x124]
push edx
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call sub.PSAPI.DLL_GetModuleBaseNameA
lea ecx, [ebp - 0x124]
push ecx
push dword [ebp + 8]
call fcn.00462918
add esp, 8
test eax, eax
jne 0x4044ba
push dword [ebp - 0xc]
push 0
push 0x100001
call sub.KERNEL32.DLL_OpenProcess
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4044a5
push dword [ebp - 0xc]
lea eax, [ebp - 0x124]
push eax
push 0x486eae
lea edx, [ebp - 0x14ac]
push edx
call fcn.00464204
add esp, 0x10
lea ecx, [ebp - 0x14ac]
push ecx
call fcn.00403908
pop ecx
jmp 0x4044d1
push 0
push dword [ebp - 0x1c]
call sub.KERNEL32.DLL_TerminateProcess
mov dword [ebp - 0x10], eax
push dword [ebp - 0x1c]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebp - 0x18]
call sub.KERNEL32.DLL_CloseHandle
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 8]
jb 0x4043e7
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x413e20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x48ec90
cmp dword [edi], 0
jne 0x413e9c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x48ec8c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x48a008
mov ecx, 2
call fcn.00425658
mov edx, 0x413df8
lea eax, [esi + 5]
call fcn.00413e18
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00413e18
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 0x413e71
mov dword [0x48ec8c], 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 0x415310
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.0042727c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x415368
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x48e410]
mov dl, 1
mov eax, dword [0x414ec8]
call fcn.00419208
call fcn.00426a2c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00414fd0
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 0x418964
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x41899d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00426ebc
jmp 0x4189a6
mov eax, ebx
mov edx, esi
call fcn.00426e20
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4189b0
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
test eax, eax
jle 0x4189d1
mov al, byte [esp]
jmp 0x4189d3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x419058
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x418ed0
mov eax, dword [0x48e5e0]
cmp byte [eax], 0
je 0x4190c5
mov eax, dword [0x48e5e4]
call fcn.00425a14
call fcn.004255c4
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004171dc
push eax
lea eax, [esp + 0x50]
push eax
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 0x41910c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x4190fb
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x48e4a0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x48e778]
call fcn.00428518
push eax
call sub.USER32.DLL_LoadStringA
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.USER32.DLL_MessageBoxA
add esp, 0x444
ret

Function at 0x419c54
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 0x419cb8
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
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00427034
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.00416e3c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419cbf
lea eax, [ebp - 0xc]
call fcn.00426dcc
ret

Function at 0x4260f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x48a540]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x426188
push closesocket
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x426168
xor eax, eax
push ebp
push 0x426161
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 0x4261a4
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 0x426168
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x48a540]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x48a540], ax
mov esp, ebp
pop ebp
ret

Function at 0x426c50
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48efb4], 0
je 0x426cb1
cmp word [0x48f188], 0xd7b2
jne 0x426c79
cmp dword [0x48f190], 0
jbe 0x426c79
mov eax, 0x48f184
call dword [0x48f1a0]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x426cd8
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x48a550], 0
jne 0x426ccd
push 0
push 0x48a5a8
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x42870c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x42893c
push closesocket
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x42878f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x42893c
push closesocket
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x42878f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x428958
push closesocket
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x428818
xor eax, eax
push ebp
push 0x428811
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00428554
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x4287f6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x428978
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x4287f6
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428818
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x428932
cmp byte [ebp - 0xd], 0
jne 0x42885f
cmp byte [ebp - 0x12], 0
je 0x428932
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x428878
dec ebx
cmp byte [ebx], 0x2e
je 0x428887
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x428877
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x428932
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4288c4
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x428932
cmp byte [ebp - 0xd], 0
je 0x428932
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x428932
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4290b0
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x48f528], 1
jae 0x429136
mov byte [0x48a53c], 2
mov dword [0x48ef78], 0x46ce90
mov dword [0x48ef7c], 0x46cea2
mov byte [0x48efb6], 2
mov dword [0x48ef64], 0x427d3c
call fcn.004260c0
test al, al
je 0x4290f3
call fcn.004260f0
call fcn.004261b4
mov word [0x48efbc], 0xd7b0
mov word [0x48f188], 0xd7b0
mov word [0x48f354], 0xd7b0
call fcn.00427c1c
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x48efa8], eax
call fcn.00424090
mov dword [0x48efa4], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x48ef9c], eax
ret

Function at 0x429b4c
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 0x429a98
call sub.USER32.DLL_EnumWindows
ret

Function at 0x429c70
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 0x429ced
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004296bc
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 0x429c95
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00429314
cmp dword [ebp - 4], 0
je 0x429cd7
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.0042727c
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 0x429cf4
lea eax, [ebp - 4]
call fcn.00426dcc
ret

Function at 0x432b8c
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.00426dcc
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x432bdb
push 0x100
lea edx, [ebp - 0x102]
push edx
push eax
call sub.USER32.DLL_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, 0x100
call fcn.00427034
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x439158
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 0x43915e
ret

Function at 0x43b630
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 0x43b681
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x43b668
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x43b658
jmp 0x43b681
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 0x43b669
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4440fc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44414c]
test si, 4
je 0x444110
or bl, 1
test si, 8
je 0x44411a
or bl, 4
test si, 1
je 0x444124
or bl, 8
test si, 2
je 0x44412e
or bl, 0x10
test si, 0x10
je 0x444138
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x444147
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x444150
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x444188]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x444169
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x444178
or bl, 4
test esi, 0x20000000
je 0x444183
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44aac4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44aad6
add esp, 0xfffffff0
call fcn.004265e4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00412d9c
mov eax, dword [0x48e600]
mov dword [eax + 4], ebx
mov dword [eax], 0x44ae68
mov eax, dword [0x48e604]
mov dword [eax + 4], ebx
mov dword [eax], 0x44ae74
mov eax, ebx
call fcn.0044ae80
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4089e8]
call fcn.00426250
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4089e8]
call fcn.00426250
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4089e8]
call fcn.00426250
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4089e8]
call fcn.00426250
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4089e8]
call fcn.00426250
mov dword [ebx + 0x7c], eax
push 0
call sub.USER32.DLL_GetDC
mov esi, eax
push 0x5a
push esi
call sub.GDI32.DLL_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.USER32.DLL_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x447348
push eax
push 0
push 0
mov eax, dword [0x48e740]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x43858c]
call fcn.00439ca0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x43858c]
call fcn.00439ca0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x43858c]
call fcn.00439ca0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044b2a0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44b17c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44b17c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44b17c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44ac13
call fcn.0042663c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret