joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405418
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.0042c5f0
xor eax, eax
push ebp
push 0x4055ee
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x405604
mov dl, 8
mov eax, dword [ebp - 4]
call fcn.004062b0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x100bc], edx
mov eax, dword [ebp - 4]
call fcn.00405b40
xor eax, eax
push ebp
push 0x4055c9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffff
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x40c43c]
call fcn.00410c1c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x405561
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x40553b
push 0
push 0x10000
mov eax, dword [ebp - 4]
add eax, 0x30
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10290]
push eax
call sub.WSOCK32.DLL_recv
mov ebx, eax
test ebx, ebx
jle 0x4054ff
mov eax, dword [ebp - 4]
lea edx, [eax + 0x30]
mov ecx, ebx
mov eax, dword [ebp - 0xc]
call fcn.00410970
mov eax, dword [ebp - 4]
add dword [eax + 0x100bc], ebx
mov eax, dword [ebp - 4]
cmp word [eax + 0x100c2], 0
je 0x4054f7
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x100c4]
call dword [esi + 0x100c0]
mov eax, dword [ebp - 4]
call fcn.00405b40
cmp ebx, 0xffffffff
jne 0x40552b
call sub.WSOCK32.DLL_WSAGetLastError
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x10094], esi
cmp esi, 0x2749
je 0x40554b
lea ecx, [ebp - 0x10]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.004061e4
test ebx, ebx
je 0x40554b
mov eax, dword [0x470d94]
mov eax, dword [eax]
call fcn.0044da80
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
je 0x40549b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405568
mov eax, dword [ebp - 0xc]
call fcn.0042b61c
ret
Function at 0x40562c
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x405801
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x405818
mov dl, 8
mov eax, dword [ebp - 4]
call fcn.004062b0
mov eax, esi
call fcn.0042c150
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x100bc], edx
mov eax, dword [ebp - 4]
call fcn.00405b40
xor eax, eax
push ebp
push 0x4057e4
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x40575d
push 0
push 0x10000
mov eax, dword [ebp - 4]
add eax, 0x30
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10290]
push eax
call sub.WSOCK32.DLL_recv
mov ebx, eax
test ebx, ebx
je 0x405783
cmp ebx, 1
jle 0x405727
mov eax, dword [esi]
call fcn.0042c408
mov edi, eax
lea edx, [edi + ebx]
mov eax, esi
call fcn.0042c78c
mov eax, esi
call fcn.0042c658
inc edi
dec edi
test eax, eax
je 0x4056de
cmp edi, dword [eax - 4]
jb 0x4056e3
call fcn.0042b55c
inc edi
lea edx, [eax + edi - 1]
mov eax, dword [ebp - 4]
add eax, 0x30
mov ecx, ebx
call fcn.0042a86c
mov eax, dword [ebp - 4]
add dword [eax + 0x100bc], ebx
mov eax, dword [ebp - 4]
cmp word [eax + 0x100c2], 0
je 0x40571d
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x100c4]
call dword [ebx + 0x100c0]
mov eax, dword [ebp - 4]
call fcn.00405b40
jmp 0x405751
inc ebx
jne 0x405751
call sub.WSOCK32.DLL_WSAGetLastError
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x10094], ebx
cmp ebx, 0x2749
je 0x405783
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.004061e4
mov eax, dword [0x470d94]
mov eax, dword [eax]
call fcn.0044da80
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
jne 0x405783
cmp dword [ebp - 8], 0xffffffff
je 0x40568c
mov eax, dword [esi]
call fcn.0042c408
cmp eax, dword [ebp - 8]
jl 0x40568c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
je 0x4057ce
mov eax, dword [ebp - 4]
mov byte [eax + 0x10090], 0
mov ecx, 0x405830
mov dl, 1
mov eax, dword [0x404340]
call fcn.0041e178
call fcn.0042bdb0
mov eax, dword [ebp - 4]
cmp word [eax + 0x1028a], 0
je 0x4057ce
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x1028c]
call dword [ebx + 0x10288]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4057eb
mov eax, dword [ebp - 4]
call fcn.00405b98
ret
Function at 0x4060ec
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x4061b8
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x4061cc
mov dl, 4
mov eax, ebx
call fcn.004062b0
mov byte [ebx + 0x10298], 0
mov si, word [ebx + 0x10290]
cmp si, 0xffff
je 0x4061a2
movzx eax, si
push eax
call sub.WSOCK32.DLL_closesocket
test eax, eax
jne 0x406194
test byte [ebx + 0x1c], 8
jne 0x406151
cmp word [ebx + 0x10052], 0
je 0x406151
mov edx, ebx
mov eax, dword [ebx + 0x10054]
call dword [ebx + 0x10050]
cmp byte [ebx + 0x10091], 0
jne 0x4061a2
push 0
push 1
push 2
call sub.WSOCK32.DLL_socket
mov esi, eax
cmp esi, 0xffff
jbe 0x406174
call fcn.0042b55c
mov word [ebx + 0x10290], si
push 0x3d
push 0x465
mov eax, dword [ebx + 0x10294]
push eax
movzx eax, si
push eax
call sub.WSOCK32.DLL_WSAAsyncSelect
jmp 0x4061a2
lea ecx, [ebp - 4]
mov dx, 0x2733
mov eax, ebx
call fcn.004061e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4061bf
lea eax, [ebp - 4]
call fcn.0042c150
ret

Function at 0x406358
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
mov ebx, eax
mov ecx, 0x406394
mov dl, 8
mov eax, ebx
call fcn.004062b0
push 2
push 1
lea eax, [ebx + 0x30]
push eax
movzx eax, word [ebx + 0x10290]
push eax
call sub.WSOCK32.DLL_recv
test eax, eax
jle 0x406386
mov al, 1
pop ebx
ret
xor eax, eax
pop ebx
ret
Function at 0x4063a4
Capabilities:
Set socket configuration

Disassembly:
push ebx
mov ebx, eax
mov ecx, 0x406534
mov dl, 8
mov eax, ebx
call fcn.004062b0
cmp dword [ebx + 0x100a4], 0
jne 0x4063da
lea eax, [ebx + 0x30]
mov edx, dword [ebx + 0x10274]
call fcn.0041af68
push eax
call sub.WSOCK32.DLL_inet_addr
mov dword [ebx + 0x10268], eax
jmp 0x4063f4
lea eax, [ebx + 0x30]
mov edx, dword [ebx + 0x100a4]
call fcn.0041af68
push eax
call sub.WSOCK32.DLL_inet_addr
mov dword [ebx + 0x10268], eax
cmp dword [ebx + 0x10268], 0xffffffff
jne 0x40652a
xor eax, eax
mov dword [ebx + 0x10268], eax
mov eax, ebx
call fcn.00405b40
mov byte [ebx + 0x100d0], 0
push 0x400
mov eax, dword [ebx + 0x10278]
push eax
lea eax, [ebx + 0x30]
push eax
push 0x466
mov eax, dword [ebx + 0x10294]
push eax
call sub.WSOCK32.DLL_WSAAsyncGetHostByName
push 2
call sub.KERNEL32.DLL_Sleep
mov eax, dword [0x470d94]
mov eax, dword [eax]
call fcn.0044da80
cmp byte [ebx + 0x100d0], 0
jne 0x406466
cmp byte [ebx + 0x100b1], 0
jne 0x406466
cmp byte [ebx + 0x10090], 0
je 0x406438
mov eax, ebx
call fcn.00405b98
cmp byte [ebx + 0x100b1], 0
je 0x40648c
mov ecx, 0x40654c
mov dl, 1
mov eax, dword [0x4042e8]
call fcn.0041e178
call fcn.0042bdb0
cmp byte [ebx + 0x10090], 0
je 0x4064ab
mov ecx, 0x40656c
mov dl, 1
mov eax, dword [0x4042e8]
call fcn.0041e178
call fcn.0042bdb0
cmp byte [ebx + 0x100b0], 0
jne 0x4064ca
mov ecx, 0x40658c
mov dl, 1
mov eax, dword [0x4042e8]
call fcn.0041e178
call fcn.0042bdb0
lea eax, [ebx + 0x10268]
mov edx, dword [ebx + 0x10278]
mov edx, dword [edx + 0xc]
mov edx, dword [edx]
mov dl, byte [edx]
mov byte [eax], dl
mov edx, dword [ebx + 0x10278]
mov edx, dword [edx + 0xc]
mov edx, dword [edx]
mov dl, byte [edx + 1]
mov byte [eax + 1], dl
mov edx, dword [ebx + 0x10278]
mov edx, dword [edx + 0xc]
mov edx, dword [edx]
mov dl, byte [edx + 2]
mov byte [eax + 2], dl
mov edx, dword [ebx + 0x10278]
mov edx, dword [edx + 0xc]
mov edx, dword [edx]
mov dl, byte [edx + 3]
mov byte [eax + 3], dl
cmp word [ebx + 0x1006a], 0
je 0x40652a
mov edx, ebx
mov eax, dword [ebx + 0x1006c]
call dword [ebx + 0x10068]
pop ebx
ret

Function at 0x417168
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x471064
cmp dword [edi], 0
jne 0x4171e4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x471060]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x46c9d8
mov ecx, 2
call fcn.0042a86c
mov edx, 0x417140
lea eax, [esi + 5]
call fcn.00417160
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00417160
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 0x4171b9
mov dword [0x471060], 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 0x41d9cc
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 0x41da05
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0042c240
jmp 0x41da0e
mov eax, ebx
mov edx, esi
call fcn.0042c1a4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x41e0c0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x41df38
mov eax, dword [0x470d84]
cmp byte [eax], 0
je 0x41e12d
mov eax, dword [0x470d88]
call fcn.0042adb0
call fcn.0042a7d8
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0041aed0
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 0x41e174
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x41e163
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x470c44]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x470f04]
call fcn.0042d86c
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 0x41ee38
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 0x41ee9c
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.0042c3b8
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.0041ab2c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41eea3
lea eax, [ebp - 0xc]
call fcn.0042c150
ret

Function at 0x42a9f8
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.0042c150
test esi, esi
jne 0x42aa2e
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.0042c240
jmp 0x42aa4c
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0042a8ac
mov edi, eax
test esi, esi
je 0x42aa4c
cmp dword [ebx], 0
je 0x42aa4c
dec esi
jmp 0x42aa35
add esp, 0x108
pop edi
pop esi
pop ebx
ret
Function at 0x42b48c
Capabilities:
Query or enumerate registry value

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

Function at 0x42bfd4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x471388], 0
je 0x42c035
cmp word [0x47155c], 0xd7b2
jne 0x42bffd
cmp dword [0x471564], 0
jbe 0x42bffd
mov eax, 0x471558
call dword [0x471574]
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 0x42c05c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x46cf2c], 0
jne 0x42c051
push 0
push 0x46cf84
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x42da60
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 0x42dc90
push reloc.WSOCK32.DLL_accept
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x42dae3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x42dc90
push closesocket
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x42dae3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x42dcac
push reloc.WSOCK32.DLL_accept
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x42db6c
xor eax, eax
push ebp
push 0x42db65
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0042d8a8
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 0x42db4a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x42dccc
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x42db4a
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 0x42db6c
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 0x42dc86
cmp byte [ebp - 0xd], 0
jne 0x42dbb3
cmp byte [ebp - 0x12], 0
je 0x42dc86
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x42dbcc
dec ebx
cmp byte [ebx], 0x2e
je 0x42dbdb
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x42dbcb
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x42dc86
inc ebx
cmp byte [ebp - 0x12], 0
je 0x42dc18
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 0x42dc86
cmp byte [ebp - 0xd], 0
je 0x42dc86
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 0x42dc86
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 0x42e404
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x4718fc], 1
jae 0x42e48a
mov byte [0x46cf18], 2
mov dword [0x47134c], 0x46a362
mov dword [0x471350], 0x46a374
mov byte [0x47138a], 2
mov dword [0x471338], 0x42d090
call fcn.0042b45c
test al, al
je 0x42e447
call fcn.0042b48c
call fcn.0042b550
mov word [0x471390], 0xd7b0
mov word [0x47155c], 0xd7b0
mov word [0x471728], 0xd7b0
call fcn.0042cf70
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x47137c], eax
call fcn.004292a4
mov dword [0x471378], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x471370], eax
ret

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

Function at 0x42efc4
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 0x42f041
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0042ea10
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 0x42efe9
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0042e668
cmp dword [ebp - 4], 0
je 0x42f02b
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.0042c600
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 0x42f048
lea eax, [ebp - 4]
call fcn.0042c150
ret

Function at 0x4350b4
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.0042c150
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x435103
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.0042c3b8
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43b3b0
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 0x43b3b6
ret

Function at 0x43d7f8
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 0x43d849
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x43d830
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x43d820
jmp 0x43d849
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 0x43d831
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x444c34
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x444c84]
test si, 4
je 0x444c48
or bl, 1
test si, 8
je 0x444c52
or bl, 4
test si, 1
je 0x444c5c
or bl, 8
test si, 2
je 0x444c66
or bl, 0x10
test si, 0x10
je 0x444c70
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x444c7f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x444c88
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x444cc0]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x444ca1
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x444cb0
or bl, 4
test esi, 0x20000000
je 0x444cbb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44b5fc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44b60e
add esp, 0xfffffff0
call fcn.0042b968
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004160e4
mov eax, dword [0x470da0]
mov dword [eax + 4], ebx
mov dword [eax], 0x44b9a0
mov eax, dword [0x470da4]
mov dword [eax + 4], ebx
mov dword [eax], 0x44b9ac
mov eax, ebx
call fcn.0044b9b8
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x40bd0c]
call fcn.0042b5ec
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x40bd0c]
call fcn.0042b5ec
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x40bd0c]
call fcn.0042b5ec
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x40bd0c]
call fcn.0042b5ec
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x40bd0c]
call fcn.0042b5ec
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, 0x447e80
push eax
push 0
push 0
mov eax, dword [0x470e8c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x43aab4]
call fcn.0043bef8
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x43aab4]
call fcn.0043bef8
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x43aab4]
call fcn.0043bef8
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044bdd8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44bcb4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44bcb4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44bcb4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44b74b
call fcn.0042b9c0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret