joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46f210
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404320
xor eax, eax
push ebp
push 0x46f32c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x46f30f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.00404330
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
setne byte [ebp - 5]
cmp dword [ebp - 0x10], 0
jne 0x46f293
call sub.kernel32.dll_GetLastError
cmp eax, 0x424
jne 0x46f293
mov ecx, 0x46f344
mov dl, 1
mov eax, dword [0x407140]
call fcn.0040b960
cmp dword [ebp - 0x10], 0
je 0x46f2f8
xor eax, eax
push ebp
push 0x46f2f1
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_StartServiceA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
jne 0x46f2da
call sub.kernel32.dll_GetLastError
cmp eax, 0x420
jne 0x46f2da
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f2f8
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f316
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret

Function at 0x46f36c
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404320
xor eax, eax
push ebp
push 0x46f45f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
setne byte [ebp - 5]
cmp byte [ebp - 5], 0
je 0x46f449
xor eax, eax
push ebp
push 0x46f442
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.00404330
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
setne byte [ebp - 5]
xor eax, eax
push ebp
push 0x46f424
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x2c]
push eax
push 1
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_ControlService
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_DeleteService
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f42b
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f466
lea eax, [ebp - 4]
call fcn.00403e70
ret
Function at 0x46f470
Capabilities:
Create service
Persist via windows service

Disassembly:
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
test eax, eax
jne 0x46f498
push 0
push 0x46f4ec
push 0x46f4f4
push 0
call sub.user32.dll_MessageBoxA_1
xor eax, eax
ret
mov edx, 0x46f510
push 0
push 0
push 0
push 0
push 0
push edx
push 1
push 2
push 0x110
push 0xf01ff
push 0x46f530
push 0x46f540
push eax
call sub.advapi32.dll_CreateServiceA
test eax, eax
jne 0x46f4e0
push 0
push 0x46f4ec
push 0x46f54c
push 0
call sub.user32.dll_MessageBoxA_1
xor eax, eax
ret
push eax
call sub.advapi32.dll_CloseServiceHandle
mov al, 1
ret
Function at 0x40a8a8
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov al, byte [ebp + 8]
cmp al, 7
jb 0x40a8fd
sub al, 7
je 0x40a971
dec al
je 0x40a8cb
sub al, 2
je 0x40a8f5
sub al, 3
je 0x40a8e7
jmp 0x40a8fd
mov eax, dword [0x411280]
cmp eax, dword [0x411120]
jle 0x40a971
dec dword [0x411280]
jmp 0x40a971
mov edi, dword [0x411120]
mov dword [0x411280], edi
jmp 0x40a971
inc dword [0x411270]
jmp 0x40a971
mov word [ebp - 8], 1
mov word [ebp - 6], 1
mov word [ebp - 0xc], 0
mov word [ebp - 0xa], 0
movzx ax, byte [ebp + 8]
mov word [ebp - 4], ax
movzx ax, byte [0x411110]
mov word [ebp - 2], ax
mov eax, dword [0x411280]
dec eax
mov word [ebp - 0x14], ax
mov eax, dword [0x411270]
dec eax
mov word [ebp - 0x12], ax
mov eax, dword [0x411280]
dec eax
mov word [ebp - 0x10], ax
mov eax, dword [0x411270]
dec eax
mov word [ebp - 0xe], ax
lea edi, [ebp - 0x14]
push edi
push dword [ebp - 0xc]
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push dword [0x411170]
call sub.kernel32.dll_WriteConsoleOutputA
inc dword [0x411280]
mov eax, dword [0x411280]
cmp eax, dword [0x411140]
jle 0x40a99f
mov edi, dword [0x411120]
mov dword [0x411280], edi
inc dword [0x411270]
jmp 0x40a99f
push 1
call fcn.0040aa08
dec dword [0x411270]
mov eax, dword [0x411270]
cmp eax, dword [0x411150]
jg 0x40a992
leave
ret 4
Function at 0x12800
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x1283d
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 + 0x108]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x1285d
lea eax, [esp + 0x108]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x104
call fcn.00013d78
add esp, 0x20c
pop esi
pop ebx
ret

Function at 0x129a8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x129d7
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00013c30
jmp 0x129f5
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.000128d0
mov edi, eax
test ebx, ebx
je 0x129f5
cmp dword [esi], 0
je 0x129f5
dec ebx
jmp 0x129de
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x12cdc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x12d74
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x12d54
xor eax, eax
push ebp
push 0x12d4d
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 0x12d90
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 0x12d54
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x15814
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 0xf003f
push 0
push 0x159d0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x15875
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x159ec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x158e7
xor eax, eax
push ebp
push 0x158e0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.0001566c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x158c9
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x15a0c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x158e7
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
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 0x159c8
cmp byte [ebp - 0xd], 0
jne 0x15929
cmp byte [ebp - 0x12], 0
je 0x159c8
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x15942
dec ebx
cmp byte [ebx], 0x2e
je 0x15951
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x15941
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x159c8
inc ebx
cmp byte [ebp - 0x12], 0
je 0x1597e
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x159c8
cmp byte [ebp - 0xd], 0
je 0x159c8
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x159c8
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
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 0x1af1c
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 0x1af55
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00013c30
jmp 0x1af5e
mov eax, ebx
mov edx, esi
call fcn.00013b9c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1af68
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 0x1af89
mov al, byte [esp]
jmp 0x1af8b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x2a018
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 0x2a01e
ret

Function at 0x2c53c
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 0x2c58d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x2c574
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x2c564
jmp 0x2c58d
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 0x2c575
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x38098
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 - 0xc]
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
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
cmp dword [0x7c784], 0
sete dl
or al, dl
jne 0x381d8
mov eax, dword [0x7c788]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x7c784]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x381a7
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x7c784]
call fcn.00021570
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x3819f
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x3819f
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x3819f
mov eax, dword [ebp - 0x14]
call fcn.000403a8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x3819f
push ebp
call fcn.00038054
pop ecx
test al, al
jne 0x3819f
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x3815b
mov eax, dword [ebp - 0x14]
call fcn.0003ed34
dec eax
jle 0x3819f
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov bx, 0xffc1
call fcn.00013040
cmp byte [ebp - 1], 0
je 0x3819f
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x3819f
mov edx, dword [ebp - 0x14]
mov eax, dword [0x7c788]
call fcn.000378a0
inc edi
dec esi
jne 0x380ee
mov eax, dword [0x7c788]
cmp dword [eax + 8], 0
jle 0x381bf
mov eax, dword [0x7c788]
call fcn.00037930
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x381d8
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00037ebc
pop ecx
test al, al
jne 0x381d8
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
Function at 0x3dd40
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, dword [esi]
cmp eax, 0x84
jg 0x3dd71
je 0x3ddcb
sub eax, 7
je 0x3dd92
dec eax
je 0x3ddbc
sub eax, 0x17
je 0x3de70
jmp 0x3deae
add eax, 0xffffff00
sub eax, 9
jb 0x3de5c
add eax, 0xffffff09
sub eax, 0xb
jb 0x3de24
jmp 0x3deae
mov eax, ebx
call fcn.000504fc
mov edi, eax
test edi, edi
je 0x3df0e
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x3df17
jmp 0x3df0e
test byte [ebx + 0x44], 0x20
jne 0x3df17
jmp 0x3df0e
mov edx, esi
mov eax, ebx
call fcn.0003b340
cmp dword [esi + 0xc], 0xffffffff
jne 0x3df17
push 0
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.000173bc
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.00039e74
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.0003dc18
test eax, eax
je 0x3df17
mov dword [esi + 0xc], 1
jmp 0x3df17
mov edx, esi
mov eax, ebx
call fcn.0003dcac
test al, al
je 0x3df0e
cmp dword [esi + 0xc], 0
jne 0x3df17
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
push eax
mov eax, dword [esi]
push eax
mov eax, ebx
call fcn.000403a8
push eax
call sub.user32.dll_DefWindowProcA
jmp 0x3df17
mov eax, ebx
call fcn.0003a9dc
test al, al
jne 0x3df17
jmp 0x3df0e
mov eax, ebx
call fcn.000403a8
mov edi, eax
call sub.user32.dll_GetCapture
cmp edi, eax
jne 0x3df0e
cmp dword [0x7a76c], 0
je 0x3df0e
mov eax, dword [0x7a76c]
cmp ebx, dword [eax + 0x24]
jne 0x3df0e
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x7a76c]
call fcn.0003b274
jmp 0x3df0e
mov eax, dword [0x7c74c]
cmp byte [eax + 0x20], 0
je 0x3df0e
mov eax, dword [0x7c74c]
cmp dword [eax + 0x1c], 0
je 0x3df0e
mov eax, dword [esi]
mov edx, dword [0x7c74c]
cmp eax, dword [edx + 0x1c]
jne 0x3df0e
lea eax, [ebp - 0x110]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x110]
call fcn.00050440
mov byte [ebp - 0xc], al
mov ax, word [esi + 4]
mov word [ebp - 0xa], ax
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, ebx
mov bx, 0xffb7
call fcn.00013040
jmp 0x3df17
mov edx, esi
mov eax, ebx
call fcn.0003b340
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x3e3d8
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1e8], 0
je 0x3e3f4
cmp dword [esi + 4], 0
je 0x3e421
test byte [ebx + 0x45], 1
jne 0x3e413
mov eax, ebx
call fcn.0003d310
test eax, eax
jne 0x3e413
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x3e531
mov edx, esi
mov eax, ebx
call fcn.0003e050
jmp 0x3e531
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x3e52a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.000403a8
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0003b274
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0003e3d8
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.000403a8
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3e531
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47d78
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.00013b48
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x47dc7
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00013d78
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50218
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x7c7e4
cmp dword [edi], 0
jne 0x50294
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x7c7e0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x7a900
mov ecx, 2
call fcn.00012890
mov edx, 0x501f0
lea eax, [esi + 5]
call fcn.00050210
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00050210
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 0x50269
mov dword [0x7c7e0], 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 0x503b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x50400]
test si, 4
je 0x503c4
or bl, 1
test si, 8
je 0x503ce
or bl, 4
test si, 1
je 0x503d8
or bl, 8
test si, 2
je 0x503e2
or bl, 0x10
test si, 0x10
je 0x503ec
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x503fb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x50404
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x5043c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5041d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5042c
or bl, 4
test esi, 0x20000000
je 0x50437
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x56f64
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x56f76
add esp, 0xfffffff0
call fcn.000131a4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00028078
mov eax, ebx
call fcn.000572c8
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x1f9c4]
call fcn.00012e34
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x1f9c4]
call fcn.00012e34
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x1f9c4]
call fcn.00012e34
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x1f9c4]
call fcn.00012e34
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x1f9c4]
call fcn.00012e34
mov dword [ebx + 0x70], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x34], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x4c]
push eax
mov eax, 0x5347c
push eax
push 0
push 0
mov eax, dword [0x7afec]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x29540]
call fcn.0002aaf4
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x29540]
call fcn.0002aaf4
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x29540]
call fcn.0002aaf4
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.000576a8
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x575c4
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x575c4
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x575c4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x57085
call fcn.000131fc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret