joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cd4c
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004087f0
xor eax, eax
push ebp
push 0x40ce0c
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00409864
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00409a14
mov eax, dword [ebx]
call fcn.0040cbfc
test al, al
jne 0x40cde9
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00409864
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00409a14
mov eax, dword [ebx]
call fcn.0040cbfc
test al, al
jne 0x40cde9
mov eax, ebx
call fcn.0040870c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ce13
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040876c
lea eax, [ebp - 4]
call fcn.0040870c
ret

Function at 0x40e8c4
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x413154
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.00413140
add esp, 0x208
pop ebx
ret

Function at 0x41fa14
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41fa6d
test eax, edx
je 0x41fa70
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41fa2b
movzx eax, word [eax]
sub eax, ecx
jmp 0x41fa52
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]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x41fa53
add ecx, 4
js 0x41fa43
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41fa50
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41fa52
xor eax, eax
ret
test eax, eax
je 0x41fa7c
test edx, edx
jne 0x41fa1c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x420f6c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x420f99
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x42110c
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.004097c0
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x421161
call sub.kernel32.dll_GetLastError
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42115b
test ah, 4
je 0x42115b
test al, 0x10
je 0x42115b
mov eax, esi
call fcn.004097c0
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x421161
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4253d4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x42540d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00408894
jmp 0x425416
mov eax, ebx
mov edx, esi
call fcn.00408aec
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x425420
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x425442
movzx eax, word [esp]
jmp 0x425444
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x426494
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x4265b9
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042629c
mov esi, eax
mov eax, dword [0x656938]
cmp byte [eax], 0
je 0x426561
mov eax, dword [0x656524]
call fcn.00405c80
call fcn.00405604
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x426464]
call fcn.0040b8d8
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4265d4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x42659d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x656488]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x65a634]
call fcn.0040bcf8
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4265c0
lea eax, [ebp - 4]
mov edx, dword [0x426464]
call fcn.0040b9fc
ret
Function at 0x42737c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x427452
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00408b34
lea eax, [ebp - 4]
call fcn.00408cc8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004097c0
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42743c
mov eax, ebx
call fcn.00405490
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x427435
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 - 4]
call fcn.004097c0
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42741f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x427464
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42741f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42743c
mov eax, dword [ebp - 0x10]
call fcn.004054ac
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427459
lea eax, [ebp - 4]
call fcn.0040870c
ret

Function at 0x427468
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x427568
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00408b34
lea eax, [ebp - 4]
call fcn.00408cc8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004097c0
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x427552
mov eax, ebx
call fcn.00405490
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x42754b
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004097c0
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x427535
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42757c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x427535
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427552
mov eax, dword [ebp - 0x10]
call fcn.004054ac
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42756f
lea eax, [ebp - 4]
call fcn.0040870c
ret
Function at 0x46b150
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x46b19e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0046abfc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46b1b7
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x46b1c0
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0046abfc
dec esi
jne 0x46b1e2
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret

Function at 0x46d8ac
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x65c9d0
cmp dword [edi], 0
jne 0x46d928
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc
mov esi, eax
mov eax, dword [0x65c9cc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x653684
mov ecx, 2
call fcn.004056d0
mov edx, 0x46d884
lea eax, [esi + 5]
call fcn.0046d8a4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0046d8a4
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 0x46d8fd
mov dword [0x65c9cc], 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 0x4b18a0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x4b18a8
mov eax, edx
pop esi
pop ebx
ret

Function at 0x4c8810
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.004097c0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov edx, eax
mov eax, ebx
call fcn.004c82e4
test al, al
jne 0x4c8871
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x656b54]
mov dl, 1
mov eax, dword [0x4c7018]
call fcn.004266fc
call fcn.00407e08
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004c824c
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 0x4cfc2c
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 0x4cfc32
ret
Function at 0x4ed518
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
cmp dword [0x65d048], 0
je 0x4ed659
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x65687c]
mov edx, dword [edx]
xor al, byte [edx + 0xd4]
je 0x4ed659
mov eax, dword [0x65d04c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x65d048]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4ed628
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x65d048]
call fcn.0045a3f0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4ed620
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x215], 0
je 0x4ed620
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x78]
test al, al
je 0x4ed620
mov eax, dword [ebp - 0x14]
call fcn.004f9238
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4ed620
push ebp
call fcn.004ed4d4
pop ecx
test al, al
jne 0x4ed620
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffb8
call fcn.00406ce8
test al, al
je 0x4ed620
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 si, 0xffb9
call fcn.00406ce8
cmp byte [ebp - 1], 0
je 0x4ed620
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.00410a50
test al, al
je 0x4ed620
mov edx, dword [ebp - 0x14]
mov eax, dword [0x65d04c]
call fcn.004ecc44
inc edi
dec ebx
jne 0x4ed57d
mov eax, dword [0x65d04c]
cmp dword [eax + 8], 0
jle 0x4ed640
mov eax, dword [0x65d04c]
call fcn.004eccf8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4ed659
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004ed33c
pop ecx
test al, al
jne 0x4ed659
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 0x4f5bf0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.00410c34
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.004efb7c
test ebx, ebx
jne 0x4f5c43
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.004f5a68
mov ebx, eax
test ebx, ebx
je 0x4f5d39
cmp esi, ebx
je 0x4f5c6c
mov eax, dword [esp]
sub eax, dword [ebx + 0x50]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x54]
mov dword [esp + 0x118], eax
jmp 0x4f5c81
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x4f5cb9
add eax, 0xffffff5f
sub eax, 2
jb 0x4f5cd1
dec eax
sub eax, 2
jb 0x4f5ce5
dec eax
sub eax, 2
jb 0x4f5cdb
jmp 0x4f5cef
add eax, 0xfffffdff
sub eax, 2
jb 0x4f5cd1
dec eax
sub eax, 2
jb 0x4f5ce5
dec eax
sub eax, 2
jb 0x4f5cdb
jmp 0x4f5cef
mov byte [esp + 0x120], 0
jmp 0x4f5cf7
mov byte [esp + 0x120], 2
jmp 0x4f5cf7
mov byte [esp + 0x120], 1
jmp 0x4f5cf7
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.00589cdc
mov esi, eax
call fcn.004ec2c0
or si, ax
mov word [esp + 0x121], si
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.004f1594
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x4f5d3b
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x556b94
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
mov eax, ebx
call fcn.00556c5c
test eax, eax
je 0x556be6
mov edi, dword [ebx + 8]
test edi, edi
je 0x556bc2
test edi, edi
je 0x556bc2
mov edx, esi
mov eax, edi
call fcn.004f01ec
jmp 0x556bf4
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, ebx
call fcn.00556c5c
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00408894
jmp 0x556bf4
mov ecx, esi
mov edx, 0x556c14
mov eax, ebx
call fcn.00556b1c
lea eax, [ebx + 0x1c]
mov edx, dword [esi]
call fcn.00408aec
add esp, 0x200
pop edi
pop esi
pop ebx
ret

Function at 0x578ccc
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.0040870c
push 0
movzx eax, bl
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
mov ebx, eax
test ebx, ebx
je 0x578d1e
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
push ebx
call sub.user32.dll_GetKeyNameTextW
test eax, eax
je 0x578d17
mov eax, esi
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00409864
jmp 0x578d1e
mov eax, esi
call fcn.0040870c
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x57e628
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x57e787
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x6556ac], 0
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x4c723c]
call fcn.004c8274
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x57e75d
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.004c8320
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.00409864
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x57e7a0
call fcn.00409a14
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.004c8384
test al, al
je 0x57e747
lea ecx, [ebp - 4]
mov edx, 0x57e814
mov eax, dword [ebp - 0xc]
call fcn.004c8794
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.004285b4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x57e747
xor edx, edx
push ebp
push 0x57e740
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x57e82c
mov eax, dword [ebp - 8]
push eax
call fcn.0041218c
test eax, eax
je 0x57e729
mov ebx, eax
call ebx
mov ebx, eax
test ebx, ebx
je 0x57e729
call fcn.0057e5b4
test eax, eax
je 0x57e719
mov eax, dword [ebx + 0x50]
jmp 0x57e71c
mov eax, dword [ebx + 0x28]
and eax, 1
cmp eax, 1
sete byte [0x6556ac]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57e747
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57e764
mov eax, dword [ebp - 0xc]
call fcn.004069c8
ret
Function at 0x57e890
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]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x57e8d7
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x57e8ba
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x57e8cb
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x57e8d7
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x5897ec
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_GetWindowLongW
mov edi, eax
test bl, bl
je 0x58980d
test edi, 0x40000
je 0x589827
test bl, bl
jne 0x5898a8
mov eax, 0x40000
and eax, edi
cmp eax, 0x40000
jne 0x5898a8
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
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x58985a
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x58986f
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
jmp 0x58987e
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x58988f
cmp byte [esp + 2], 0
je 0x5898a8
cmp byte [esp + 2], 0
je 0x5898a0
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x5898a8
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x589b4c
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 0x589b72
mov eax, esp
push eax
push 0x589b14
call sub.user32.dll_EnumWindows
jmp 0x589b85
mov eax, esp
push eax
push 0x589af4
call sub.kernel32.dll_GetCurrentThreadId
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x589c48
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
movzx esi, word [0x589c98]
test bl, 4
je 0x589c5c
or si, 1
test bl, 8
je 0x589c65
or si, 4
test bl, 1
je 0x589c6e
or si, 8
test bl, 2
je 0x589c77
or si, 0x10
test bl, 0x10
je 0x589c80
or si, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x589c90
or si, 2
mov eax, esi
pop esi
pop ebx
ret

Function at 0x589c9c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, word [0x589cd8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x589cb7
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x589cc7
or bx, 4
test esi, 0x20000000
je 0x589cd3
or bx, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x592bb4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x592bc6
add esp, 0xfffffff0
call fcn.00406f84
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0046b2e4
mov eax, dword [0x656498]
mov dword [eax + 4], ebx
mov dword [eax], 0x593080
mov eax, dword [0x6564a4]
mov dword [eax + 4], ebx
mov dword [eax], 0x59308c
mov eax, ebx
call fcn.00593098
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x437ff0]
call fcn.00406998
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x437ff0]
call fcn.00406998
mov dword [ebx + 0x60], eax
mov dl, 1
mov eax, dword [0x437ff0]
call fcn.00406998
mov dword [ebx + 0x64], eax
mov dl, 1
mov eax, dword [0x437ff0]
call fcn.00406998
mov dword [ebx + 0x68], eax
mov dl, 1
mov eax, dword [0x437ff0]
call fcn.00406998
mov dword [ebx + 0x84], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x50], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x68]
push eax
mov eax, 0x58dae0
push eax
push 0
push 0
call sub.user32.dll_EnumDisplayMonitors
mov dl, 1
mov eax, dword [0x4cb75c]
call fcn.004d0570
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x4cb75c]
call fcn.004d0570
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4cb75c]
call fcn.004d0570
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4cb75c]
call fcn.004d0570
mov dword [ebx + 0x94], eax
mov dl, 1
mov eax, dword [0x4cb75c]
call fcn.004d0570
mov dword [ebx + 0x98], eax
mov eax, ebx
call fcn.00593674
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5934a4
mov eax, dword [ebx + 0x90]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5934a4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5934a4
mov eax, dword [ebx + 0x94]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5934a4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5934a4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x592d46
call fcn.00406fdc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret