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

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004044cc
test esi, esi
jne 0x402e33
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.004045bc
jmp 0x402e54
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402c98
mov dword [esp], eax
test esi, esi
je 0x402e54
cmp dword [ebx], 0
je 0x402e54
dec esi
jmp 0x402e3b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403530
Capabilities:
Query or enumerate registry value

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

Function at 0x4042c4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x478048], 0
je 0x404325
cmp word [0x47821c], 0xd7b2
jne 0x4042ed
cmp dword [0x478224], 0
jbe 0x4042ed
mov eax, 0x478218
call dword [0x478234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47606c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40434c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x476030], 0
jne 0x404341
push 0
push 0x476064
push 0x47606c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404480
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402a38
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x478049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404448
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406344
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 0x4063aa
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
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0040473c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004030e8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406394
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4063b1
lea eax, [ebp - 0x10]
call fcn.004044cc
ret

Function at 0x40b8c8
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 0x40b901
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004045bc
jmp 0x40b90a
mov eax, ebx
mov edx, esi
call fcn.00404520
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c8ec
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 0x40c9c2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404564
lea eax, [ebp - 8]
call fcn.004049dc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040498c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c9ac
mov eax, ebx
call fcn.00402a38
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c9a5
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.0040498c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c98f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c9d4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c98f
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 0x40c9ac
mov eax, dword [ebp - 0x10]
call fcn.00402a68
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c9c9
lea eax, [ebp - 8]
call fcn.004044cc
ret
Function at 0x40cf9c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40d000
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0040473c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004089bc
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d007
lea eax, [ebp - 0xc]
call fcn.004044cc
ret

Function at 0x41adb4
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.0041ac0c
dec esi
jne 0x41add6
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x41bf18
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x478888
cmp dword [edi], 0
jne 0x41bf94
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x478884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x47646c
mov ecx, 2
call fcn.00402c58
mov edx, 0x41bef0
lea eax, [esi + 5]
call fcn.0041bf10
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041bf10
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 0x41bf69
mov dword [0x478884], 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 0x41d530
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 0x41d536
ret

Function at 0x41fc8c
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 0x41fcdd
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41fcc4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41fcb4
jmp 0x41fcdd
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 0x41fcc5
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42be98
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
push 1
call sub.user32.dll_GetClipboardData
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x42bf0a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x42bede
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov edx, eax
mov eax, ebx
call fcn.004046c4
jmp 0x42bee5
mov eax, ebx
call fcn.004044cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42bf11
cmp dword [ebp - 8], 0
je 0x42bf01
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x42bf18
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x42bfba
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x42bf8d
mov edx, ebx
mov eax, dword [0x41cff4]
call fcn.0042147c
test al, al
je 0x42bf7d
movzx eax, bx
push eax
call sub.user32.dll_GetClipboardData
mov esi, eax
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, esi
mov edx, ebx
mov eax, edi
call fcn.0042138c
call fcn.00403f08
jmp 0x42bfc1
movzx eax, bx
push eax
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x42bf48
mov ecx, dword [0x4775a4]
mov dl, 1
mov eax, dword [0x407828]
call fcn.0040c150
call fcn.00403e5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42bfc1
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x42bfc8
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x42c020
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.user32.dll_GetClipboardData
mov ebx, eax
push 9
call sub.user32.dll_GetClipboardData
mov esi, eax
push esi
mov ecx, ebx
mov dx, 2
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42c027
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x43211c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x432199
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00431b7c
call sub.kernel32.dll_GetTickCount
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x432141
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0043177c
cmp dword [ebp - 4], 0
je 0x432183
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.0040498c
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4321a0
lea eax, [ebp - 4]
call fcn.004044cc
ret

Function at 0x435030
Capabilities:
Inspect section memory permissions

Disassembly:
inc ebp
test dword [edx - 0x3a], esi
inc ebp
xchg byte [ebx - 0x3a], ah
inc ebp
xchg dword [edx - 0x3a], edi
inc ebp
mov byte [ebx - 0x3a], dh
inc ebp
mov dword [esi - 0x3a], ebx
inc ebp
mov dh, byte [edi - 0x3a]
inc ebp
mov edi, dword [eax - 0x3a]
inc ebp
invalid

Function at 0x4364f8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
out dx, eax
lea eax, [ebp - 0x6f4]
push eax
call fcn.00434b90
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
invalid
xor esp, esi
Function at 0x438b9c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x438be8
mov eax, esi
call fcn.0044e5b8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x438be8
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x438be8
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x438d27
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x438c28
cmp eax, 0x108
ja 0x438c28
mov eax, esi
call fcn.0044e5b8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x438d1e
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x438d27
jmp 0x438d1e
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x438d07
cmp eax, 0x20a
ja 0x438d07
test byte [esi + 0x50], 0x80
jne 0x438c5a
sub eax, 0x203
je 0x438c57
sub eax, 3
je 0x438c57
sub eax, 3
jne 0x438c5a
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x438c6e
dec eax
je 0x438c83
dec eax
je 0x438ca0
dec eax
je 0x438c83
jmp 0x438ca7
mov ecx, ebx
mov eax, dword [0x477878]
mov eax, dword [eax]
mov edx, esi
call fcn.00457f20
jmp 0x438d1e
cmp byte [esi + 0x5d], 1
jne 0x438c99
mov eax, esi
mov si, 0xffed
call fcn.004038c4
jmp 0x438d27
or word [esi + 0x54], 1
jmp 0x438d1e
and word [esi + 0x54], 0xfffe
jmp 0x438d1e
mov eax, dword [0x478b14]
cmp byte [eax + 0x20], 0
je 0x438d1e
mov eax, dword [0x478b14]
cmp dword [eax + 0x1c], 0
je 0x438d1e
mov eax, dword [ebx]
mov edx, dword [0x478b14]
cmp eax, dword [edx + 0x1c]
jne 0x438d1e
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.0044e4fc
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.004038c4
jmp 0x438d27
cmp eax, 0xb00b
jne 0x438d1e
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.004374bc
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x442ac0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x477a84]
cmp byte [eax + 0xc], 0
je 0x442c2d
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x442c26
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x478b68], 0
jne 0x442b14
push 0x442c34
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x442c3c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x478b68], eax
cmp dword [0x476be8], 0
jne 0x442c0f
push 0x442c4c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x476be8], eax
cmp dword [0x476be8], 0
je 0x442c0f
push 0x442c58
mov eax, dword [0x476be8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x478b6c], eax
push 0x442c68
mov eax, dword [0x476be8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x478b70], eax
push 0x442c7c
mov eax, dword [0x476be8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x478b74], eax
push 0x442c94
mov eax, dword [0x476be8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x478b78], eax
push 0x442cac
mov eax, dword [0x476be8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x478b7c], eax
push 0x442cc0
mov eax, dword [0x476be8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x478b80], eax
push 0x442cd8
mov eax, dword [0x476be8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x478b84], eax
push 0x442cf0
mov eax, dword [0x476be8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x478b88], eax
push 0x442d0c
mov eax, dword [0x476be8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x478b8c], eax
push 0x442d18
mov eax, dword [0x476be8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x478b90], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x442c2d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x446c30
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.004044cc
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x446c7f
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.0040473c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44e46c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44e4bc]
test si, 4
je 0x44e480
or bl, 1
test si, 8
je 0x44e48a
or bl, 4
test si, 1
je 0x44e494
or bl, 8
test si, 2
je 0x44e49e
or bl, 0x10
test si, 0x10
je 0x44e4a8
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44e4b7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44e4c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44e4f8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44e4d9
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44e4e8
or bl, 4
test esi, 0x20000000
je 0x44e4f3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x454bbc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x454bce
add esp, 0xfffffff0
call fcn.004039f4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ae88
mov eax, dword [0x4775c8]
mov dword [eax + 4], ebx
mov dword [eax], 0x454f60
mov eax, dword [0x4775d8]
mov dword [eax + 4], ebx
mov dword [eax], 0x454f6c
mov eax, ebx
call fcn.00454f78
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x412460]
call fcn.0040368c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x412460]
call fcn.0040368c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x412460]
call fcn.0040368c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x412460]
call fcn.0040368c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x412460]
call fcn.0040368c
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, 0x451390
push eax
push 0
push 0
mov eax, dword [0x4777c4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41c904]
call fcn.0041e09c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41c904]
call fcn.0041e09c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41c904]
call fcn.0041e09c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004553c8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x455290
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x455290
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x455290
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x454d0b
call fcn.00403a4c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x455074
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45521f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x455200
mov dl, 1
mov eax, dword [0x412934]
call fcn.0040368c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004044cc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4551ef
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00442e20
test al, al
je 0x4551e2
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x455230
lea eax, [ebp - 0x254]
call fcn.004095f0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4551e2
xor eax, eax
push ebp
push 0x4551db
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x455268
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4551c4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040473c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4551c4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040473c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4551e2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4550e5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00416adc
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455226
lea eax, [ebp - 0x260]
call fcn.004044cc
ret
Function at 0x45626c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x478bb4]
cmp dword [eax + 0x30], 0
je 0x456316
cmp dword [ebx + 0x94], 0
jne 0x456310
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4561fc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x456310
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4562d6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x456310
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414b48
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4562e5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x456e74
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x456ea9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004045bc
jmp 0x456eb6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404520
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x458068
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4580a9
mov eax, esi
call fcn.0043e408
test al, al
je 0x4580a9
mov eax, dword [ebx + 0x84]
call fcn.0043e104
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4580a9
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043e104
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret