joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405ab0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push eax
push 0x40
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x405ad3
mov eax, 1
jmp 0x405bde
mov edx, dword [ebp + 8]
movzx eax, word [edx]
cmp eax, 0x5a4d
jne 0x405ae9
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x3c], 0
jne 0x405af3
mov eax, 2
jmp 0x405bde
mov edx, dword [ebp + 0x10]
push edx
push 0xf8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x40
push edx
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x405b1e
mov eax, 1
jmp 0x405bde
mov eax, dword [ebp + 8]
cmp dword [eax + 0x40], 0x4550
jne 0x405b44
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x58]
cmp edx, 0x10b
jne 0x405b44
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x46]
test ecx, ecx
jne 0x405b4e
mov eax, 2
jmp 0x405bde
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x46]
imul eax, eax, 0x28
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x140], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x140]
push eax
call fcn.00411990
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x138], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x138], 0
jne 0x405b8f
mov eax, 3
jmp 0x405bde
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x54]
lea ecx, [ecx + eax + 0x18]
mov edx, dword [ebp + 8]
mov dword [edx + 0x13c], ecx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x140]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x13c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x138]
push eax
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x405bdc
mov eax, 1
jmp 0x405bde
xor eax, eax
pop ebp
ret

Function at 0x406570
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x406586
xor eax, eax
jmp 0x4065c6
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0x4550
jne 0x4065ab
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x18]
cmp eax, 0x10b
je 0x4065af
xor eax, eax
jmp 0x4065c6
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x78]
push ecx
call fcn.004065d0
add esp, 0xc
mov esp, ebp
pop ebp
ret

Function at 0x412580
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4125b0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x4125c3
xor eax, eax
jmp 0x412681
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x4125de
xor eax, eax
jmp 0x412681
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0x4550
je 0x4125fc
xor eax, eax
jmp 0x412681
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x78]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], 0
jmp 0x41263e
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x18]
jae 0x41267f
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
push edx
call fcn.004119b0
add esp, 8
test eax, eax
jne 0x41267d
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x412681
jmp 0x412635
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4013ec
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4013fe
mov eax, dword [0x4a908b]
shl eax, 2
mov dword [0x4a908f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.0049b0bc
pop edx
call fcn.0049b020
call fcn.0049b0fc
push 0
call fcn.0049c578
pop ecx
push 0x4a9034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x4a9093], eax
push 0
jmp fcn.004a2c3c
Function at 0x42cda8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4b8bd8
cmp dword [edi], 0
jne 0x42ce24
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x4b8bd4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4b3688
mov ecx, 2
call fcn.00442e38
mov edx, 0x42cd80
lea eax, [esi + 5]
call fcn.0042cda0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042cda0
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 0x42cdf9
mov dword [0x4b8bd4], 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 0x434b9c
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 0x434bd5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00444804
jmp 0x434bde
mov eax, ebx
mov edx, esi
call fcn.00444768
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x436128
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 0x43618c
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.0044497c
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.00431b1c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x436193
lea eax, [ebp - 0xc]
call fcn.00444714
ret

Function at 0x442f64
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.00444714
test esi, esi
jne 0x442f9a
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.00444804
jmp 0x442fb8
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00442e78
mov edi, eax
test esi, esi
je 0x442fb8
cmp dword [ebx], 0
je 0x442fb8
dec esi
jmp 0x442fa1
add esp, 0x108
pop edi
pop esi
pop ebx
ret
Function at 0x443a38
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4b3bf0]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x443ad0
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x443ab0
xor eax, eax
push ebp
push 0x443aa9
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 0x443aec
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 0x443ab0
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x4b3bf0]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4b3bf0], ax
mov esp, ebp
pop ebp
ret

Function at 0x444598
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b8f6c], 0
je 0x4445f9
cmp word [0x4b9140], 0xd7b2
jne 0x4445c1
cmp dword [0x4b9148], 0
jbe 0x4445c1
mov eax, 0x4b913c
call dword [0x4b9158]
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 0x444620
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x4b3c00], 0
jne 0x444615
push 0
push 0x4b3c58
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x4460d0
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 0x446300
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x446153
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x446300
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x446153
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x44631c
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4461dc
xor eax, eax
push ebp
push 0x4461d5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00445f18
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 0x4461ba
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x44633c
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x4461ba
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 0x4461dc
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 0x4462f6
cmp byte [ebp - 0xd], 0
jne 0x446223
cmp byte [ebp - 0x12], 0
je 0x4462f6
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x44623c
dec ebx
cmp byte [ebx], 0x2e
je 0x44624b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x44623b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4462f6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x446288
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 0x4462f6
cmp byte [ebp - 0xd], 0
je 0x4462f6
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 0x4462f6
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 0x446aa8
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x4b94e0], 1
jae 0x446b2e
mov byte [0x4b3bec], 2
mov dword [0x4b8f30], 0x4a86ec
mov dword [0x4b8f34], 0x4a86fe
mov byte [0x4b8f6e], 2
mov dword [0x4b8f1c], 0x4456e8
call fcn.00443a08
test al, al
je 0x446aeb
call fcn.00443a38
call fcn.00443afc
mov word [0x4b8f74], 0xd7b0
mov word [0x4b9140], 0xd7b0
mov word [0x4b930c], 0xd7b0
call fcn.004455c0
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x4b8f60], eax
call fcn.00441870
mov dword [0x4b8f5c], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x4b8f54], eax
ret

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

Function at 0x447668
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 0x4476e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004470b4
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 0x44768d
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00446d0c
cmp dword [ebp - 4], 0
je 0x4476cf
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00444bc4
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 0x4476ec
lea eax, [ebp - 4]
call fcn.00444714
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00444bc4
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
setne al
pop ebx
ret

Function at 0x458b40
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.00444714
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x458b8f
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.0044497c
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45eac4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45ed24
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x45eb27
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.0045e58c
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.00435c34
cmp al, 1
jne 0x45eb27
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.0045e8a4
test al, al
je 0x45ecb3
cmp dword [ebp - 8], 0
jge 0x45eb45
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.0045e58c
mov eax, dword [ebp - 0x210]
call fcn.004449cc
cmp ebx, eax
jge 0x45eb8f
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.0045e58c
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4b8844]
and eax, 0xff
bt dword [edx], eax
jae 0x45eb8f
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x45eba3
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0045eaa0
cmp ebx, dword [ebp - 8]
je 0x45eca5
lea eax, [ebp - 0x108]
push eax
call sub.USER32.DLL_GetKeyboardState
mov edx, 0x100
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x45ebcf
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00443dc4
and eax, 0x7f
movzx eax, word [eax*2 + 0x4b3ee8]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.USER32.DLL_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x45ec92
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00443dc4
and eax, 0x7f
movzx eax, word [eax*2 + 0x4b3ee8]
push eax
push 0x100
mov eax, dword [ebp - 4]
call fcn.00491ae4
push eax
call sub.USER32.DLL_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00443dc4
and eax, 0x7f
movzx eax, word [eax*2 + 0x4b3ee8]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00491ae4
push eax
call sub.USER32.DLL_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ec99
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x45ed06
cmp dword [ebp - 8], 0
jge 0x45ecbe
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.0045e58c
mov eax, dword [ebp - 0x218]
call fcn.004449cc
cmp eax, dword [ebp - 8]
jg 0x45ecf8
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.0045e58c
mov eax, dword [ebp - 0x21c]
call fcn.004449cc
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0045eaa0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ed2b
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00444738
ret
Function at 0x46a490
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 0x46a496
ret

Function at 0x46cb78
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 0x46cbc9
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x46cbb0
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x46cba0
jmp 0x46cbc9
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 0x46cbb1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x475c58
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x475ca8]
test si, 4
je 0x475c6c
or bl, 1
test si, 8
je 0x475c76
or bl, 4
test si, 1
je 0x475c80
or bl, 8
test si, 2
je 0x475c8a
or bl, 0x10
test si, 0x10
je 0x475c94
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x475ca3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x475cac
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x475ce4]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x475cc5
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x475cd4
or bl, 4
test esi, 0x20000000
je 0x475cdf
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x47c620
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x47c632
add esp, 0xfffffff0
call fcn.00443f2c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0042bd10
mov eax, dword [0x4b8874]
mov dword [eax + 4], ebx
mov dword [eax], 0x47c9c4
mov eax, dword [0x4b8878]
mov dword [eax + 4], ebx
mov dword [eax], 0x47c9d0
mov eax, ebx
call fcn.0047c9dc
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x421904]
call fcn.00443b98
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x421904]
call fcn.00443b98
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x421904]
call fcn.00443b98
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x421904]
call fcn.00443b98
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x421904]
call fcn.00443b98
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, 0x478ea4
push eax
push 0
push 0
mov eax, dword [0x4b8a28]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4698c4]
call fcn.0046afd8
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4698c4]
call fcn.0046afd8
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4698c4]
call fcn.0046afd8
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0047cdfc
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x47ccd8
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x47ccd8
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x47ccd8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x47c76f
call fcn.00443f84
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret