joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40383c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00405848
test esi, esi
jne 0x403873
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00405938
jmp 0x403894
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.004036d8
mov dword [esp], eax
test esi, esi
je 0x403894
cmp dword [ebx], 0
je 0x403894
dec esi
jmp 0x40387b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4046e8
Capabilities:
Query or enumerate registry value

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

Function at 0x405614
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x50c04c], 0
je 0x405675
cmp word [0x50c220], 0xd7b2
jne 0x40563d
cmp dword [0x50c228], 0
jbe 0x40563d
mov eax, 0x50c21c
call dword [0x50c238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4f8788
push 0xfffffffffffffff5
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 0x40569c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x4f8034], 0
jne 0x405691
push 0
push 0x4f8780
push 0x4f8788
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret

Function at 0x4057d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4f803c], 0
je 0x4057fb
mov edx, esi
mov eax, ebx
call dword [0x4f803c]
mov dword [ebp - 8], eax
jmp 0x405813
mov eax, 8
call fcn.0040330c
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [eax], ebx
mov eax, dword [ebp - 8]
mov dword [eax + 4], esi
mov byte [0x50c04d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, 0x405798
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.KERNEL32.DLL_CreateThread_1
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x407bb8
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 0x407c1e
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_1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00405ab8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00404230
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x407c08
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407c25
lea eax, [ebp - 0x10]
call fcn.00405848
ret

Function at 0x40b820
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40b872
test eax, edx
je 0x40b875
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x40b835
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40b85b
add ecx, 4
js 0x40b84b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x40b858
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x40b881
test edx, edx
jne 0x40b828
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405d24
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40c5ed
test al, 0x10
je 0x40c5f1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405d24
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40c611
test al, 0x10
jne 0x40c615
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c754
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00405d24
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
jne 0x40c776
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40fa0c
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
test eax, eax
jle 0x40fa45
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00405938
jmp 0x40fa4e
mov eax, ebx
mov edx, esi
call fcn.0040589c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40fa58
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 0x40fa79
mov al, byte [esp]
jmp 0x40fa7b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x410110
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ff78
mov eax, dword [0x50ba88]
cmp byte [eax], 0
je 0x41018c
mov eax, dword [0x50b704]
call fcn.00403c64
call fcn.00403538
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.0040cb00
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4101d4
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x4101c2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x50b680]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x50e7fc]
call fcn.00406fc0
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 0x410ab4
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 0x410b8a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004058e0
lea eax, [ebp - 8]
call fcn.00405d74
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00405d24
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x410b74
mov eax, ebx
call fcn.0040330c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x410b6d
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.00405d24
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x410b57
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x410b9c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x410b57
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 0x410b74
mov eax, dword [ebp - 0x10]
call fcn.00403328
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410b91
lea eax, [ebp - 8]
call fcn.00405848
ret

Function at 0x42b848
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0042b540
dec esi
jne 0x42b86a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x42c9d8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
lea ebx, [ebp - 0xc]
mov esi, 0x510dcc
cmp dword [esi], 0
jne 0x42ca7e
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x510dc8]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x4f9850
mov ecx, 2
call fcn.004035d8
mov edx, 0x42c9b0
mov eax, dword [ebp - 8]
add eax, 5
call fcn.0042c9d0
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebx], eax
mov eax, dword [ebx]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebx]
call fcn.0042c9d0
mov edx, dword [ebx]
mov dword [edx + 1], eax
mov eax, dword [ebx]
mov edx, dword [esi]
mov dword [eax + 5], edx
mov eax, dword [ebx]
mov dword [esi], eax
add dword [ebx], 0xd
mov eax, dword [ebx]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x42ca45
mov eax, dword [ebp - 8]
mov dword [0x510dc8], eax
mov eax, dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebx]
mov eax, dword [eax + 5]
mov dword [esi], eax
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x42d934
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.00405d24
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x42d98c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x50bca0]
mov dl, 1
mov eax, dword [0x42d440]
call fcn.004102f4
call fcn.004051b4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0042d548
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 0x42ee64
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 0x42ee6a
ret
Function at 0x44bd20
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 [0x51106c], 0
je 0x44be69
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x50b9d4]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x44be69
mov eax, dword [0x511070]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x51106c]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x44be38
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x51106c]
call fcn.004226a0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x44be30
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x44be30
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x44be30
mov eax, dword [ebp - 0x14]
call fcn.00456484
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44be30
push ebp
call fcn.0044bcdc
pop ecx
test al, al
jne 0x44be30
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00404af4
test al, al
je 0x44be30
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, 0xffbc
call fcn.00404af4
cmp byte [ebp - 1], 0
je 0x44be30
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x44be30
mov edx, dword [ebp - 0x14]
mov eax, dword [0x511070]
call fcn.0044b468
inc edi
dec ebx
jne 0x44bd85
mov eax, dword [0x511070]
cmp dword [eax + 8], 0
jle 0x44be50
mov eax, dword [0x511070]
call fcn.0044b524
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x44be69
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0044bb44
pop ecx
test al, al
jne 0x44be69
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 0x453420
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffedc
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.00407ee0
lea edx, [esp + 0x11c]
call fcn.00408d90
lea edx, [esp + 0x11c]
mov ecx, esp
mov eax, esi
call fcn.0044e088
test ebx, ebx
jne 0x45346c
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.0045335c
mov ebx, eax
test ebx, ebx
je 0x453557
cmp esi, ebx
je 0x453495
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x108], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x10c], eax
jmp 0x4534aa
mov eax, dword [esp]
mov dword [esp + 0x108], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x10c], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x110], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x4534e2
add eax, 0xffffff5f
sub eax, 2
jb 0x4534fa
dec eax
sub eax, 2
jb 0x45350e
dec eax
sub eax, 2
jb 0x453504
jmp 0x453518
add eax, 0xfffffdff
sub eax, 2
jb 0x4534fa
dec eax
sub eax, 2
jb 0x45350e
dec eax
sub eax, 2
jb 0x453504
jmp 0x453518
mov byte [esp + 0x114], 0
jmp 0x453520
mov byte [esp + 0x114], 2
jmp 0x453520
mov byte [esp + 0x114], 1
jmp 0x453520
mov byte [esp + 0x114], 0
lea eax, [esp + 8]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 8]
call fcn.00469830
mov byte [esp + 0x115], al
lea eax, [esp + 0x108]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.0044f818
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x453559
xor eax, eax
add esp, 0x124
pop edi
pop esi
pop ebx
ret
Function at 0x45b8a4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x50bc88]
cmp byte [eax + 0xc], 0
je 0x45ba11
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45ba0a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x51107c], 0
jne 0x45b8f8
push 0x45ba18
call sub.KERNEL32.DLL_GetModuleHandleA_1
mov ebx, eax
push 0x45ba20
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x51107c], eax
cmp dword [0x4fa37c], 0
jne 0x45b9f3
push 0x45ba30
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x4fa37c], eax
cmp dword [0x4fa37c], 0
je 0x45b9f3
push 0x45ba3c
mov eax, dword [0x4fa37c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x511080], eax
push 0x45ba4c
mov eax, dword [0x4fa37c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x511084], eax
push 0x45ba60
mov eax, dword [0x4fa37c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x511088], eax
push 0x45ba78
mov eax, dword [0x4fa37c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x51108c], eax
push 0x45ba90
mov eax, dword [0x4fa37c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x511090], eax
push 0x45baa4
mov eax, dword [0x4fa37c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x511094], eax
push 0x45babc
mov eax, dword [0x4fa37c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x511098], eax
push 0x45bad4
mov eax, dword [0x4fa37c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x51109c], eax
push 0x45baf0
mov eax, dword [0x4fa37c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5110a0], eax
push 0x45bafc
mov eax, dword [0x4fa37c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5110a4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ba11
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x460710
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.00405848
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x46075f
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.00405ab8
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x465784
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4658bd
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0x16]
push eax
call sub.user32.dll_GetKeyboardLayoutNameA
mov dl, 1
mov eax, dword [0x42d4a0]
call fcn.0042d570
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x465893
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0042d610
lea eax, [ebp - 0x24]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.00405ab8
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov edx, 0x4658d4
call fcn.00405b70
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.0042d674
lea ecx, [ebp - 4]
mov edx, 0x465910
mov eax, dword [ebp - 0xc]
call fcn.0042d8bc
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.00411e2c
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x465876
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x46591c
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov ebx, eax
call ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov ax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x4fa4c0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46587d
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_FreeLibrary
ret

Function at 0x465968
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor ebx, ebx
mov bl, byte [esp + 4]
test bx, bx
je 0x4659b0
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x465993
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4659a4
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x4659b0
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x46936c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
mov edi, eax
test bl, bl
je 0x46938d
test edi, 0x40000
je 0x4693a3
test bl, bl
jne 0x469422
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x469422
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
mov al, byte [esp + 1]
or al, byte [esp + 2]
je 0x4693d5
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x4693ea
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
jmp 0x4693f9
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
mov al, byte [esp]
and al, byte [esp + 1]
jne 0x469409
cmp byte [esp + 2], 0
je 0x469422
cmp byte [esp + 2], 0
je 0x46941a
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x469422
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4696dc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x469702
mov eax, esp
push eax
push 0x4696a4
call sub.user32.dll_EnumWindows
jmp 0x469715
mov eax, esp
push eax
push 0x469684
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
call sub.user32.dll_EnumThreadWindows
mov al, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x4697a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4697f0]
test si, 4
je 0x4697b4
or bl, 1
test si, 8
je 0x4697be
or bl, 4
test si, 1
je 0x4697c8
or bl, 8
test si, 2
je 0x4697d2
or bl, 0x10
test si, 0x10
je 0x4697dc
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4697eb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4697f4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x46982c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46980d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46981c
or bl, 4
test esi, 0x20000000
je 0x469827
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x471a68
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x471a7a
add esp, 0xfffffff0
call fcn.00404c64
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0042b91c
mov eax, dword [0x50b688]
mov dword [eax + 4], ebx
mov dword [eax], 0x471e0c
mov eax, dword [0x50b694]
mov dword [eax + 4], ebx
mov dword [eax], 0x471e18
mov eax, ebx
call fcn.00471e24
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41fd1c]
call fcn.004048bc
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41fd1c]
call fcn.004048bc
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41fd1c]
call fcn.004048bc
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41fd1c]
call fcn.004048bc
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41fd1c]
call fcn.004048bc
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, 0x46d0d4
push eax
push 0
push 0
mov eax, dword [0x50b8dc]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x42e190]
call fcn.0042fa04
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x42e190]
call fcn.0042fa04
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x42e190]
call fcn.0042fa04
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004722f4
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4721bc
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4721bc
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4721bc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x471bb7
call fcn.00404cbc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret