joyce8/EMBER2024-capa huggingface dataset:
Function at 0x564740
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x564789
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x564c00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x59e430
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.005647b0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00564830
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00564830
lea ecx, [esi + 0xc]
call fcn.0058d398
lea ecx, [esi + 0x10]
call fcn.0058d398
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00565dc0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00565dc0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00565dc0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0058d40d
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0058d40d
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x58f827
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x58f85f
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0058d8b4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0058d88c
jmp 0x58f86b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x590f18
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x590f5a
call fcn.00596f07
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x590f5a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x590f51
xor eax, eax
jmp 0x590f62
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00590f68
pop edi
pop esi
pop ebx
ret 4

Function at 0x597437
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x597465
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x597483
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0059739d
jmp 0x597483
mov eax, dword [esi + 0x14]
test eax, eax
je 0x597483
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0059739d
test edi, edi
mov eax, edi
jne 0x59746d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1000daaa
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10020170]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1000cf6d
and dword [ebp - 0x14], 0
cmp dword [0x100217c0], 0
mov dword [ebp - 0x18], eax
jne 0x1000db5d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1000dc05
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001cdf0
push ebx
call edi
test eax, eax
je 0x1000dc05
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x100217c0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x100217c4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x100217c8], eax
call edi
push eax
call esi
mov dword [0x100217d0], eax
test eax, eax
je 0x1000db5d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x100217cc], eax
mov eax, dword [0x100217cc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1000dbb6
cmp dword [0x100217d0], ecx
je 0x1000dbb6
push eax
call esi
push dword [0x100217d0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1000dbb6
test ebx, ebx
je 0x1000dbb6
call edi
test eax, eax
je 0x1000dbad
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1000dbad
test byte [ebp - 8], 1
jne 0x1000dbb6
or dword [ebp + 0x10], 0x200000
jmp 0x1000dbe9
mov eax, dword [0x100217c4]
cmp eax, dword [ebp - 0x18]
je 0x1000dbe9
push eax
call esi
test eax, eax
je 0x1000dbe9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1000dbe9
mov eax, dword [0x100217c8]
cmp eax, dword [ebp - 0x18]
je 0x1000dbe9
push eax
call esi
test eax, eax
je 0x1000dbe9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x100217c0]
call esi
test eax, eax
je 0x1000dc05
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1000dc07
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10007a4d
leave
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov eax, dword [0x44d2a8]
shl eax, 2
mov dword [0x44d2ac], eax
push edi
push ecx
xor eax, eax
mov edi, 0x451d58
mov ecx, 0x455e40
cmp ecx, edi
jbe 0x401024
sub ecx, edi
cld
rep stosb byte es:[edi], al
pop ecx
pop edi
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.004437bc
pop edx
call fcn.00443720
call fcn.004437fc
push 0
call fcn.004449ac
pop ecx
push 0x44d270
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x44d2b0], eax
push 0
jmp fcn.004482b8
Function at 0x40188c
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
mov ebx, eax
mov eax, 0x44d74c
call fcn.00443dd0
mov word [ebp - 0x28], 0x14
xor esi, esi
mov edx, 0x44d42f
lea eax, [ebp - 8]
call fcn.0044c39c
inc dword [ebp - 0x1c]
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebx + 0x2f4]
inc dword [ebp - 0x1c]
lea edx, [ebp - 8]
lea ecx, [ebp - 0xc]
call fcn.0044c454
lea eax, [ebp - 0xc]
xor edx, edx
mov dword [ebp - 0x10], edx
lea ecx, [ebp - 0x10]
inc dword [ebp - 0x1c]
mov edx, 0x44d378
call fcn.0044c454
lea eax, [ebp - 0x10]
push eax
mov edx, str..SYS
lea eax, [ebp - 0x14]
call fcn.0044c39c
inc dword [ebp - 0x1c]
xor eax, eax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x14]
inc dword [ebp - 0x1c]
lea ecx, [ebp - 4]
pop eax
call fcn.0044c454
dec dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0044c410
dec dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0044c410
dec dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0044c410
dec dword [ebp - 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0044c410
mov word [ebp - 0x28], 8
push 0xf003f
push 0
push 0
call sub.ADVAPI32.DLL_OpenSCManagerA
mov ebx, eax
test ebx, ebx
je 0x401a4c
push 4
mov eax, dword [0x44d378]
test eax, eax
je 0x401982
mov edx, dword [0x44d378]
jmp 0x401987
mov edx, 0x44d436
push edx
push ebx
call sub.ADVAPI32.DLL_OpenServiceA
test eax, eax
je 0x4019c1
push eax
call sub.ADVAPI32.DLL_CloseServiceHandle
push ebx
call sub.ADVAPI32.DLL_CloseServiceHandle
mov al, 1
mov edx, 2
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0x1c]
call fcn.0044c410
pop eax
mov edx, dword [ebp - 0x38]
mov dword fs:[0], edx
jmp 0x401a77
push 0
push 0
push 0
push 0
mov ecx, dword [0x44d380]
test ecx, ecx
je 0x4019da
mov eax, dword [0x44d380]
jmp 0x4019df
mov eax, 0x44d43a
push eax
mov edx, dword [ebp - 4]
test edx, edx
je 0x4019ec
mov ecx, dword [ebp - 4]
jmp 0x4019f1
mov ecx, 0x44d439
push ecx
push 1
push 2
push 1
push 0xf01ff
mov eax, dword [0x44d37c]
test eax, eax
je 0x401a0e
mov edx, dword [0x44d37c]
jmp 0x401a13
mov edx, 0x44d438
push edx
mov eax, dword [0x44d378]
test eax, eax
je 0x401a25
mov ecx, dword [0x44d378]
jmp 0x401a2a
mov ecx, 0x44d437
push ecx
push ebx
call sub.ADVAPI32.DLL_CreateServiceA
test eax, eax
jne 0x401a3e
call sub.KERNEL32.DLL_GetLastError
mov esi, eax
jmp 0x401a44
push eax
call sub.ADVAPI32.DLL_CloseServiceHandle
push ebx
call sub.ADVAPI32.DLL_CloseServiceHandle
jmp 0x401a53
call sub.KERNEL32.DLL_GetLastError
mov esi, eax
test esi, esi
mov edx, 2
sete al
and eax, 1
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0x1c]
call fcn.0044c410
pop eax
mov edx, dword [ebp - 0x38]
mov dword fs:[0], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407d98
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.004417b4
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x407df9
push 0x100
lea edx, [ebp - 0x102]
push edx
push eax
call sub.USER32.DLL_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x407df9
cmp byte [ebp - 0x102], 0
je 0x407df9
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, 0x100
call fcn.004419e0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40c6f4
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 0x40c6fa
ret

Function at 0x40ebe0
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 0x40ec31
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x40ec18
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x40ec08
jmp 0x40ec31
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 0x40ec19
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4168b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x451e3c
cmp dword [edi], 0
jne 0x41692c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x451e38]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x44e1f0
mov ecx, 2
call fcn.004408d0
mov edx, 0x416888
lea eax, [esi + 5]
call fcn.004168a8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004168a8
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 0x416901
mov dword [0x451e38], 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 0x416a48
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x416a98]
test si, 4
je 0x416a5c
or bl, 1
test si, 8
je 0x416a66
or bl, 4
test si, 1
je 0x416a70
or bl, 8
test si, 2
je 0x416a7a
or bl, 0x10
test si, 0x10
je 0x416a84
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x416a93
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x416a9c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x416ad4]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x416ab5
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x416ac4
or bl, 4
test esi, 0x20000000
je 0x416acf
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x41d174
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 0x41d319
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x43219c]
call fcn.00440ddc
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.004417b4
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.USER32.DLL_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x41d2ef
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.004310f4
test al, al
je 0x41d2e2
lea eax, [ebp - 0xc]
push eax
push 0xf003f
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, 0x41d328
lea eax, [ebp - 0x254]
call fcn.0043c338
push eax
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x41d2e2
xor eax, eax
push ebp
push 0x41d2db
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x100
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x41d360
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x41d2c4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.004419e0
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x41d2c4
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.004419e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d2e2
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x41d1e5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.004353d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d320
lea eax, [ebp - 0x260]
call fcn.004417b4
ret

Function at 0x41dabc
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x451e04]
cmp byte [eax + 0x8d], 0
jne 0x41db2d
cmp dword [0x451e48], 0
jne 0x41daee
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x41da78
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x451e48], eax
cmp dword [0x451e44], 0
jne 0x41db09
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x451e44], eax
cmp dword [0x451e4c], 0
jne 0x41db2d
push esp
push 0
push 0
push 0x41da1c
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x451e4c], eax
pop edx
ret
Function at 0x41dc24
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x41dc3b
add esp, 0xfffffff0
call fcn.004410f8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00438214
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x431e60]
call fcn.00440ddc
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x431e60]
call fcn.00440ddc
mov dword [ebx + 0x90], eax
xor eax, eax
mov dword [ebx + 0x48], eax
xor eax, eax
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x44], 0x80000018
mov dword [ebx + 0x60], 0x1f4
mov byte [ebx + 0x64], 1
xor eax, eax
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x5c], 0x9c4
mov byte [ebx + 0x70], 0
mov byte [ebx + 0x85], 1
mov dl, 1
mov eax, dword [0x40c5ac]
call fcn.0041347c
mov esi, eax
mov dword [ebx + 0x80], esi
push 0x41ddac
mov eax, dword [0x451d14]
mov eax, dword [eax]
push eax
call sub.USER32.DLL_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00413820
mov eax, dword [ebx + 0x80]
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x41f6bc
push 0x100
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x451d14]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.USER32.DLL_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0043d5fc
test eax, eax
je 0x41dd2b
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0043bcc0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0043d624
test eax, eax
je 0x41dd3f
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.USER32.DLL_CharLowerA
lea eax, [ebx + 0x74]
lea edx, [ebp - 0x101]
mov ecx, 0x100
call fcn.004419e0
mov eax, dword [0x451d18]
cmp byte [eax], 0
jne 0x41dd70
mov eax, ebx
call fcn.0041de98
mov byte [ebx + 0x41], 1
mov byte [ebx + 0x42], 1
mov byte [ebx + 0x43], 1
mov byte [ebx + 0x86], 1
xor eax, eax
mov dword [ebx + 0x88], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x41dda2
call fcn.00441150
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41e0f0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x451e04]
cmp dword [eax + 0x24], 0
je 0x41e180
cmp dword [ebx + 0x7c], 0
jne 0x41e17d
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x41e084
call sub.USER32.DLL_EnumWindows
mov eax, dword [ebx + 0x78]
cmp dword [eax + 8], 0
je 0x41e17d
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 0x41e14c
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x78]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x41e17d
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x78]
call fcn.0043340c
push eax
call sub.USER32.DLL_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x41e158
inc dword [ebx + 0x7c]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x41ead0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x8c], 0
je 0x41eb05
push 0x100
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.USER32.DLL_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00441898
jmp 0x41eb0f
mov eax, esi
mov edx, dword [ebx + 0x74]
call fcn.0044184c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x41f9ec
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x6c]
test esi, esi
je 0x41fa24
mov eax, esi
call fcn.0042cebc
test al, al
je 0x41fa24
mov eax, dword [ebx + 0x6c]
call fcn.0042ca94
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x41fa24
push 0
mov eax, dword [ebx + 0x6c]
call fcn.0042ca94
push eax
call sub.USER32.DLL_ShowWindow
pop esi
pop ebx
ret

Function at 0x424c18
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 - 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xc], edx
xor eax, eax
mov dword [ebp - 0x14], eax
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
cmp dword [0x451e8c], 0
sete dl
or al, dl
jne 0x424d5c
mov eax, dword [0x451e90]
mov bx, 0xffff
call fcn.00440fe8
mov eax, dword [0x451e8c]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x424d2b
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x451e8c]
call fcn.0043340c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
je 0x424d23
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x16c], 0
je 0x424d23
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x424d23
mov eax, dword [ebp - 0x10]
call fcn.0042ca94
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x424d23
push ebp
call fcn.00424bd4
pop ecx
test al, al
jne 0x424d23
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x8c]
cmp eax, dword [ebp - 0x10]
jne 0x424cdf
mov eax, dword [ebp - 0x10]
call fcn.0042b3d8
dec eax
jle 0x424d23
mov byte [ebp - 0x15], 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x15]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov bx, 0xffc2
call fcn.00440fe8
cmp byte [ebp - 0x15], 0
je 0x424d23
push dword [ebp - 4]
push dword [ebp - 8]
lea eax, [ebp - 0x28]
push eax
call sub.USER32.DLL_PtInRect
test eax, eax
je 0x424d23
mov edx, dword [ebp - 0x10]
mov eax, dword [0x451e90]
call fcn.00424484
inc edi
dec esi
jne 0x424c72
mov eax, dword [0x451e90]
cmp dword [eax + 8], 0
jle 0x424d43
mov eax, dword [0x451e90]
call fcn.00424514
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x424d5c
push ebp
mov eax, dword [ebp - 0x14]
call fcn.00424a8c
pop ecx
test al, al
jne 0x424d5c
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42a564
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, dword [esi]
cmp eax, 0x84
jg 0x42a595
je 0x42a5ef
sub eax, 7
je 0x42a5b6
dec eax
je 0x42a5e0
sub eax, 0x17
je 0x42a670
jmp 0x42a6ae
add eax, 0xffffff00
sub eax, 9
jb 0x42a65c
add eax, 0xffffff09
sub eax, 0xb
jb 0x42a646
jmp 0x42a6ae
mov eax, ebx
call fcn.00416bc4
mov edi, eax
test edi, edi
je 0x42a70e
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xc8]
test al, al
je 0x42a717
jmp 0x42a70e
test byte [ebx + 0x44], 0x20
jne 0x42a717
jmp 0x42a70e
mov edx, esi
mov eax, ebx
call fcn.00427e58
cmp dword [esi + 0xc], 0xffffffff
jne 0x42a717
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.00439d60
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.00426910
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.0042a414
test eax, eax
je 0x42a717
mov dword [esi + 0xc], 1
jmp 0x42a717
mov edx, esi
mov eax, ebx
call fcn.0042a4d8
test al, al
jne 0x42a717
jmp 0x42a70e
mov eax, ebx
call fcn.004274d0
test al, al
jne 0x42a717
jmp 0x42a70e
mov eax, ebx
call fcn.0042ca94
mov edi, eax
call sub.USER32.DLL_GetCapture
cmp edi, eax
jne 0x42a70e
cmp dword [0x44e3e0], 0
je 0x42a70e
mov eax, dword [0x44e3e0]
cmp ebx, dword [eax + 0x24]
jne 0x42a70e
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x44e3e0]
call fcn.00427d74
jmp 0x42a70e
mov eax, dword [0x451e54]
cmp byte [eax + 0x20], 0
je 0x42a70e
mov eax, dword [0x451e54]
cmp dword [eax + 0x1c], 0
je 0x42a70e
mov eax, dword [esi]
mov edx, dword [0x451e54]
cmp eax, dword [edx + 0x1c]
jne 0x42a70e
lea eax, [ebp - 0x110]
push eax
call sub.USER32.DLL_GetKeyboardState
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x110]
call fcn.00416ad8
mov byte [ebp - 0xc], al
mov ax, word [esi + 4]
mov word [ebp - 0xa], ax
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, ebx
mov bx, 0xffb9
call fcn.00440fe8
jmp 0x42a717
mov edx, esi
mov eax, ebx
call fcn.00427e58
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret