joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c490
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004087fc
xor eax, eax
push ebp
push 0x40c6b5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40c4d0
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40c4ea
mov eax, dword [ebp - 4]
call fcn.004097c8
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040bcc4
cmp word [ebp - 0x21a], 0
je 0x40c69f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c6c4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c5b9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c6c4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c5b9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c700
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c5b9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c700
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c5b9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c734
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c5b9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c768
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40c69f
xor eax, eax
push ebp
push 0x40c698
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c2a0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c628
mov eax, dword [ebp - 0x10]
call fcn.00405490
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040982c
jmp 0x40c673
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40c7a8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c673
mov eax, dword [ebp - 0x10]
call fcn.00405490
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40c7a8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040982c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c69f
cmp dword [ebp - 8], 0
je 0x40c68e
mov eax, dword [ebp - 8]
call fcn.004054ac
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c6bc
lea eax, [ebp - 4]
call fcn.00408718
ret
Function at 0x40c9bc
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.004087fc
xor eax, eax
push ebp
push 0x40ca7c
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.00409868
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00409a18
mov eax, dword [ebx]
call fcn.0040c86c
test al, al
jne 0x40ca59
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00409868
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00409a18
mov eax, dword [ebx]
call fcn.0040c86c
test al, al
jne 0x40ca59
mov eax, ebx
call fcn.00408718
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ca83
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00408778
lea eax, [ebp - 4]
call fcn.00408718
ret

Function at 0x40e56c
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 0x412e10
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.00412dfc
add esp, 0x208
pop ebx
ret

Function at 0x41f8b4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41f90d
test eax, edx
je 0x41f910
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41f8cb
movzx eax, word [eax]
sub eax, ecx
jmp 0x41f8f2
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 0x41f8f3
add ecx, 4
js 0x41f8e3
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41f8f0
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41f8f2
xor eax, eax
ret
test eax, eax
je 0x41f91c
test edx, edx
jne 0x41f8bc
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x420df4
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 0x420e21
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x420f94
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.004097c8
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x420fe9
call sub.kernel32.dll_GetLastError
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x420fe3
test ah, 4
je 0x420fe3
test al, 0x10
je 0x420fe3
mov eax, esi
call fcn.004097c8
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x420fe9
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42525c
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 0x425295
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004088a0
jmp 0x42529e
mov eax, ebx
mov edx, esi
call fcn.00408af8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4252a8
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 0x4252ca
movzx eax, word [esp]
jmp 0x4252cc
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x42631c
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 0x426441
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00426124
mov esi, eax
mov eax, dword [0x662844]
cmp byte [eax], 0
je 0x4263e9
mov eax, dword [0x662438]
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 [0x4262ec]
call fcn.0040b548
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 0x42645c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x426425
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x66239c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x666634]
call fcn.0040b968
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 0x426448
lea eax, [ebp - 4]
mov edx, dword [0x4262ec]
call fcn.0040b66c
ret
Function at 0x427204
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 0x4272da
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00408b40
lea eax, [ebp - 4]
call fcn.00408cd4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004097c8
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4272c4
mov eax, ebx
call fcn.00405490
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4272bd
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.004097c8
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4272a7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4272ec
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4272a7
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 0x4272c4
mov eax, dword [ebp - 0x10]
call fcn.004054ac
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4272e1
lea eax, [ebp - 4]
call fcn.00408718
ret

Function at 0x4272f0
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 0x4273f0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00408b40
lea eax, [ebp - 4]
call fcn.00408cd4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004097c8
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4273da
mov eax, ebx
call fcn.00405490
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x4273d3
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.004097c8
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4273bd
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x427404
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4273bd
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 0x4273da
mov eax, dword [ebp - 0x10]
call fcn.004054ac
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4273f7
lea eax, [ebp - 4]
call fcn.00408718
ret
Function at 0x470a94
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 0x470ae2
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.00470540
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x470afb
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x470b04
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.00470540
dec esi
jne 0x470b26
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret

Function at 0x473208
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x668ff4
cmp dword [edi], 0
jne 0x473284
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc
mov esi, eax
mov eax, dword [0x668ff0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x65f684
mov ecx, 2
call fcn.004056d0
mov edx, 0x4731e0
lea eax, [esi + 5]
call fcn.00473200
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00473200
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 0x473259
mov dword [0x668ff0], 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 0x4bf5d8
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 0x4bf5e0
mov eax, edx
pop esi
pop ebx
ret

Function at 0x4d5138
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.004097c8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov edx, eax
mov eax, ebx
call fcn.004d4c0c
test al, al
jne 0x4d5199
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x662a58]
mov dl, 1
mov eax, dword [0x4d3940]
call fcn.00426584
call fcn.00407e14
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004d4b74
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 0x4dc554
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 0x4dc55a
ret
Function at 0x4f9ee0
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 [0x669668], 0
je 0x4fa021
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x662788]
mov edx, dword [edx]
xor al, byte [edx + 0xd4]
je 0x4fa021
mov eax, dword [0x66966c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x669668]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4f9ff0
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x669668]
call fcn.0045fd1c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4f9fe8
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x215], 0
je 0x4f9fe8
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x78]
test al, al
je 0x4f9fe8
mov eax, dword [ebp - 0x14]
call fcn.00505c00
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4f9fe8
push ebp
call fcn.004f9e9c
pop ecx
test al, al
jne 0x4f9fe8
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffb8
call fcn.00406cb0
test al, al
je 0x4f9fe8
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.00406cb0
cmp byte [ebp - 1], 0
je 0x4f9fe8
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.00410734
test al, al
je 0x4f9fe8
mov edx, dword [ebp - 0x14]
mov eax, dword [0x66966c]
call fcn.004f960c
inc edi
dec ebx
jne 0x4f9f45
mov eax, dword [0x66966c]
cmp dword [eax + 8], 0
jle 0x4fa008
mov eax, dword [0x66966c]
call fcn.004f96c0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4fa021
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004f9d04
pop ecx
test al, al
jne 0x4fa021
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 0x5025b8
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.00410918
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.004fc544
test ebx, ebx
jne 0x50260b
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.00502430
mov ebx, eax
test ebx, ebx
je 0x502701
cmp esi, ebx
je 0x502634
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 0x502649
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 0x502681
add eax, 0xffffff5f
sub eax, 2
jb 0x502699
dec eax
sub eax, 2
jb 0x5026ad
dec eax
sub eax, 2
jb 0x5026a3
jmp 0x5026b7
add eax, 0xfffffdff
sub eax, 2
jb 0x502699
dec eax
sub eax, 2
jb 0x5026ad
dec eax
sub eax, 2
jb 0x5026a3
jmp 0x5026b7
mov byte [esp + 0x120], 0
jmp 0x5026bf
mov byte [esp + 0x120], 2
jmp 0x5026bf
mov byte [esp + 0x120], 1
jmp 0x5026bf
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.005966d8
mov esi, eax
call fcn.004f8c88
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.004fdf5c
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x502703
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x56360c
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.005636d4
test eax, eax
je 0x56365e
mov edi, dword [ebx + 8]
test edi, edi
je 0x56363a
test edi, edi
je 0x56363a
mov edx, esi
mov eax, edi
call fcn.004fcbb4
jmp 0x56366c
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, ebx
call fcn.005636d4
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004088a0
jmp 0x56366c
mov ecx, esi
mov edx, 0x56368c
mov eax, ebx
call fcn.00563594
lea eax, [ebx + 0x1c]
mov edx, dword [esi]
call fcn.00408af8
add esp, 0x200
pop edi
pop esi
pop ebx
ret

Function at 0x585744
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.00408718
push 0
movzx eax, bl
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
mov ebx, eax
test ebx, ebx
je 0x585796
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
push ebx
call sub.user32.dll_GetKeyNameTextW
test eax, eax
je 0x58578f
mov eax, esi
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00409868
jmp 0x585796
mov eax, esi
call fcn.00408718
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x58b024
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 0x58b183
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x6616b4], 0
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x4d3b64]
call fcn.004d4b9c
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x58b159
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.004d4c48
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.00409868
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x58b19c
call fcn.00409a18
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.004d4cac
test al, al
je 0x58b143
lea ecx, [ebp - 4]
mov edx, 0x58b210
mov eax, dword [ebp - 0xc]
call fcn.004d50bc
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.00428614
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x58b143
xor edx, edx
push ebp
push 0x58b13c
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x58b228
mov eax, dword [ebp - 8]
push eax
call fcn.00411e58
test eax, eax
je 0x58b125
mov ebx, eax
call ebx
mov ebx, eax
test ebx, ebx
je 0x58b125
call fcn.0058afb0
test eax, eax
je 0x58b115
mov eax, dword [ebx + 0x50]
jmp 0x58b118
mov eax, dword [ebx + 0x28]
and eax, 1
cmp eax, 1
sete byte [0x6616b4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58b143
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 0x58b160
mov eax, dword [ebp - 0xc]
call fcn.004069c8
ret