joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ad6e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
call dword [eax + 0x74]
test eax, eax
je 0x4ad884
mov eax, dword [edi + 0x134]
test eax, eax
je 0x4ad884
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4ad884
test eax, eax
je 0x4ad725
cmp dword [eax + 0x80], 0
je 0x4ad725
pop edi
mov eax, 2
pop esi
pop ebp
ret 8
mov esi, dword [ebp + 8]
cmp esi, 0xd
je 0x4ad884
cmp esi, 9
je 0x4ad884
cmp esi, 0x1b
jne 0x4ad76e
lea eax, [edi + 0x154]
mov ecx, edi
push eax
call fcn.004ae470
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 0x70]
mov ecx, dword [edi + 0xc0]
xor eax, eax
pop edi
pop esi
cmp dword [ecx + 0xe0], 2
sete al
pop ebp
ret 8
push ebx
test eax, eax
je 0x4ad7b1
test ecx, ecx
je 0x4ad7b1
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
call ebx
test ax, ax
jns 0x4ad7b1
push 0x11
call ebx
test ax, ax
js 0x4ad7b1
mov ecx, dword [edi + 0xc0]
call fcn.004b0bf0
test eax, eax
je 0x4ad7b1
movzx ecx, si
push ecx
mov ecx, eax
call fcn.0048bde0
test eax, eax
jne 0x4ad86c
mov ecx, edi
call fcn.0049a870
test eax, eax
je 0x4ad843
cmp dword [edi + 0x16c], 0
je 0x4ad843
cmp esi, 0x26
je 0x4ad7d3
cmp esi, 0x28
jne 0x4ad843
mov ecx, edi
call fcn.004acb00
test eax, eax
jne 0x4ad843
mov edx, dword [edi]
cmp esi, 0x26
mov ecx, edi
sete al
lea eax, [eax*2 - 1]
push eax
push 1
call dword [edx + 0x16c]
mov esi, dword [edi + 0x134]
test esi, esi
je 0x4ad86c
mov esi, dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, esi
jne 0x4ad86c
mov edi, dword [edi + 0x134]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0xffffffffffffffff
push 0
push 0xb1
push dword [edi + 0x20]
call esi
push 0
push 0
push 0xb7
push dword [edi + 0x20]
call esi
pop ebx
pop edi
mov eax, 1
pop esi
pop ebp
ret 8
mov ecx, dword [edi + 0x160]
mov ebx, dword [ebp + 0xc]
test ecx, ecx
je 0x4ad85b
push ebx
push esi
call fcn.004f15d0
test eax, eax
jne 0x4ad86c
mov ecx, dword [edi + 0x134]
push ebx
push esi
call fcn.004acea0
test eax, eax
je 0x4ad878
pop ebx
pop edi
mov eax, 1
pop esi
pop ebp
ret 8
pop ebx
pop edi
mov eax, 2
pop esi
pop ebp
ret 8
pop edi
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x4b2160
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
mov ecx, dword [esi + 0xe4]
call fcn.00496bc0
mov edi, eax
mov eax, dword [esi + 0xbc]
cmp eax, 0xffffffff
je 0x4b21c1
cmp dword [esi + 0xe8], 5
jne 0x4b21c1
cmp dword [esi + 0xe0], 1
jne 0x4b21c1
test edi, edi
je 0x4b21a0
cmp dword [edi + 0x40], eax
je 0x4b21c1
cmp eax, dword [esi + 0xb8]
jne 0x4b21b6
mov eax, dword [esi]
mov ecx, esi
push 0
push 0xffffffffffffffff
call dword [eax + 0x170]
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.004b3290
mov ecx, esi
test edi, edi
je 0x4b228f
push ebx
call fcn.004b0ec0
test eax, eax
jne 0x4b2278
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xd8]
test eax, eax
je 0x4b2278
push esi
push 0x60a7c4
call fcn.00537705
add esp, 8
test eax, eax
je 0x4b2278
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4b2278
mov ecx, esi
call fcn.004b0bf0
mov ebx, eax
test ebx, ebx
je 0x4b2278
cmp dword [ebx + 0x60], 0
je 0x4b2278
mov ecx, dword [ebx + 0x74]
cmp dword [ecx + 0x44], 0
je 0x4b2278
push 1
mov ecx, ebx
call fcn.0048cf60
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.004b3290
mov eax, dword [esi]
mov ecx, esi
push 0
push 0xffffffffffffffff
call dword [eax + 0x170]
push dword [ebp + 0x10]
mov eax, dword [edi]
mov ecx, edi
push dword [ebp + 0xc]
call dword [eax + 0x110]
push 0
mov ecx, ebx
call fcn.0048cf60
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax + 0x54]
mov ecx, ebx
call fcn.0048a600
pop ebx
pop edi
pop esi
pop ebp
ret 0xc
push dword [ebp + 0x10]
mov eax, dword [edi]
mov ecx, edi
push dword [ebp + 0xc]
call dword [eax + 0xf4]
pop ebx
pop edi
pop esi
pop ebp
ret 0xc
call fcn.00528613
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4b93d0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push dword [esi + 0x14]
mov dword [esi + 4], 0
mov dword [esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 4]
push eax
push 4
push esi
push 0x4b9350
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
test eax, eax
je 0x4b941d
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4b9430
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
je 0x4b94b5
push edi
push dword [esi + 0x14]
mov dword [esi + 0x10], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea eax, [ebp - 4]
xor edi, edi
push eax
push dword [esi + 0xc]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x4b94a4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4b9470
cmp dword [ebp - 4], 0x103
jne 0x4b94a3
mov eax, dword [esi + 0xc]
inc edi
cmp edi, 0xa
ja 0x4b949a
push 0x64
push eax
call ebx
lea eax, [ebp - 4]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x4b9470
jmp 0x4b94a3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop ebx
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4baf70
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58c420
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x60b4e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x30], 0
mov dword [esi], vtable.CXTPPropExchangeIniFile.0
jne 0x4bafb8
mov eax, dword [esi + 0x48]
cmp dword [eax - 0xc], 0
je 0x4bafb8
cmp dword [esi + 0x4c], 0
je 0x4bafb8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [esi + 0x48]
or edi, 0xffffffff
sub edx, 0x10
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4bafd5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esi + 0x44]
sub edx, 0x10
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4bafed
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, esi
call fcn.004baf00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4bb560
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
mov dword [ebp - 4], ebx
cmp dword [ebx + 0x34], 0
jne 0x4bb6b3
mov eax, dword [ebx + 0x44]
cmp dword [eax - 0xc], 0
je 0x4bb6b3
push esi
push edi
call fcn.004bb550
mov eax, dword [ebx + 0x44]
mov esi, 0x1f40
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov eax, dword [eax - 0xc]
mov dword [ebp - 0xc], eax
mov edx, 2
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00525ad5
mov ebx, eax
add esp, 4
mov eax, dword [ebp - 4]
mov dword [ebp - 8], ebx
push dword [eax + 0x48]
push esi
push ebx
call edi
test eax, eax
je 0x4bb6a8
lea ecx, [esi - 2]
cmp eax, ecx
jne 0x4bb5e4
push ebx
add esi, esi
call fcn.00525ad0
add esp, 4
jmp 0x4bb59e
mov edx, 2
test ebx, ebx
je 0x4bb5a3
mov esi, dword [ebp - 8]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, edx
test ax, ax
jne 0x4bb5f3
sub esi, ecx
sar esi, 1
je 0x4bb6a5
mov eax, dword [ebp - 0xc]
cmp eax, esi
ja 0x4bb682
mov ecx, dword [ebp - 4]
lea edi, [eax + eax]
mov edx, ebx
mov ecx, dword [ecx + 0x44]
sub edi, 4
jb 0x4bb631
mov edi, edi
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4bb636
add ecx, 4
add edx, 4
sub edi, 4
jae 0x4bb620
cmp edi, 0xfffffffc
je 0x4bb663
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4bb682
cmp edi, 0xfffffffd
je 0x4bb663
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4bb682
cmp edi, 0xfffffffe
je 0x4bb663
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4bb682
cmp edi, 0xffffffff
je 0x4bb663
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x4bb682
mov eax, dword [ebp - 0xc]
cmp eax, esi
je 0x4bb671
cmp word [ebx + eax*2], 0x5c
jne 0x4bb682
mov eax, dword [ebp - 4]
push dword [eax + 0x48]
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ebx, [ebx + esi*2]
add ebx, 2
mov esi, ebx
lea ecx, [esi + 2]
lea ecx, [ecx]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4bb690
sub esi, ecx
sar esi, 1
jne 0x4bb607
mov ebx, dword [ebp - 8]
push ebx
call fcn.00525ad0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bb8e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [esi]
call dword [eax + 0x88]
test eax, eax
je 0x4bb992
cmp dword [esi + 0x28], 0
jne 0x4bb925
mov eax, dword [ebp + 0x10]
push dword [eax]
push dword [edi]
push 3
push 0
push dword [ebp + 8]
push dword [esi + 0x44]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
pop edi
sbb eax, eax
inc eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp + 0xc]
push eax
push 0
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
push dword [esi + 0x44]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4bb992
mov ecx, dword [edi]
test ecx, ecx
jne 0x4bb960
push dword [ebp + 0xc]
call fcn.0056181a
mov ecx, dword [ebp + 0x10]
add esp, 4
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
mov dword [ecx], eax
mov ecx, dword [edi]
jmp 0x4bb96a
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, dword [ebp + 0xc]
jb 0x4bb992
lea eax, [ebp + 0xc]
push eax
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
push dword [esi + 0x44]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4bb992
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4be1f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x60b4e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
jne 0x4be281
mov eax, dword [esi + 0x48]
cmp dword [eax - 0xc], 0
jne 0x4be27a
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4be29c
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x5ba4e0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4be29c
lea edx, [ebp - 0x20c]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4be254
sub edx, ecx
lea eax, [ebp - 0x20c]
sar edx, 1
lea ecx, [esi + 0x48]
push edx
push eax
call fcn.004052ca
mov dword [esi + 0x4c], 1
mov dword [esi + 0x38], 1
mov ecx, dword [esi + 0x48]
xor eax, eax
pop edi
pop esi
cmp dword [ecx - 0xc], eax
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055a658
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0055a658
mov esp, ebp
pop ebp
ret

Function at 0x4c3980
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
call fcn.004c3840
mov dword [ebp - 4], eax
test eax, eax
je 0x4c39a7
push 5
push dword [ebp + 8]
lea eax, [ebp - 4]
mov ecx, esi
push eax
call fcn.004c36c0
test eax, eax
jne 0x4c39ca
call fcn.005322aa
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
test eax, eax
je 0x4c39db
push 5
push dword [ebp + 8]
lea eax, [ebp - 4]
mov ecx, esi
push eax
call fcn.004c36c0
test eax, eax
je 0x4c39db
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4c3a20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x4c3ae8
call fcn.004c3840
mov esi, eax
movzx eax, word [ebp + 0xc]
push 0x17
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4c3a70
call fcn.005322aa
mov esi, dword [eax + 0xc]
test esi, esi
je 0x4c3ae8
movzx eax, word [ebp + 0xc]
push 0x17
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4c3ae8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4c3ae8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp + 0xc]
mov esi, eax
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4c3ae8
lea esi, [esi*2 + 2]
mov ecx, ebx
push esi
call fcn.004bdb00
mov edi, eax
test edi, edi
je 0x4c3ae8
push esi
push 0
push edi
call fcn.0055dac0
add esp, 0xc
push esi
push edi
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0xffffffffffffffff
mov ecx, ebx
mov esi, eax
call fcn.0040c3b5
xor eax, eax
test esi, esi
pop edi
pop esi
setg al
pop ebx
pop ebp
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8

Function at 0x4c3b90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
call fcn.00404d53
mov edi, dword [ebp + 0xc]
mov eax, edi
mov ebx, dword [ebp + 8]
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4c3c3a
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4c3c3a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4c3c3a
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x4c3c02
lea esp, [esp]
cmp esi, ecx
jae 0x4c3c3a
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x4c3bf0
cmp esi, ecx
jae 0x4c3c3a
movzx edi, word [esi]
test edi, edi
je 0x4c3c3a
mov ecx, dword [ebp + 0x10]
push edi
call fcn.004c3700
lea edx, [edi + edi]
add esi, 2
push edx
push esi
push edx
push eax
call fcn.004815e0
mov ecx, dword [ebp + 0x10]
add esp, 0x10
push edi
call fcn.0040c3b5
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc
Function at 0x4c9d10
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59960d
mov eax, dword fs:[0]
push eax
sub esp, 0x204
mov eax, dword [0x60b4e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x208], eax
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x210], eax
call fcn.00526194
mov eax, dword [ebp - 0x208]
lea esi, [eax + 0x44]
mov dword [ebp - 4], 0
lea edi, [eax + 0x98]
mov dword [eax], vtable.CXTPToolTipContext.0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CFont.0
lea ebx, [eax + 0xa0]
mov dword [ebx + 4], 0
mov dword [ebx], vtable.CFont.0
push 0
mov byte [ebp - 4], 2
mov dword [eax + 0x60], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x28], 1
mov dword [eax + 0x2c], 0
mov dword [eax + 0x30], 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 0x208]
cdq
sub eax, edx
sar eax, 1
push 0x2c
mov dword [ecx + 0x3c], eax
lea eax, [ecx + 0x64]
push 0
push eax
call fcn.0055dac0
add esp, 0xc
call fcn.004b95f0
mov ecx, eax
call fcn.004b8ba0
mov ecx, dword [ebp - 0x208]
push 0
push 0
push 0
push 0
push esi
mov dword [ecx + 0x34], eax
mov dword [ecx + 0x90], 0xffffffff
mov dword [ecx + 0x94], 0xffffffff
mov dword [ecx + 0x38], 1
mov dword [ecx + 0x40], 2
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp - 0x208]
push 0x1f0
push 0
mov dword [eax + 0x58], 0xffffffff
mov dword [eax + 0x54], 0xffffffff
mov dword [eax + 0x5c], 0xffffffff
lea eax, [ebp - 0x200]
push eax
call fcn.0055dac0
add esp, 0xc
mov dword [ebp - 0x204], 0x1f4
lea eax, [ebp - 0x204]
push 0
push eax
push 0x1f4
push 0x29
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov dword [ebp - 0xb8], 0x190
call fcn.004c3f70
mov ecx, eax
call fcn.004c3750
mov esi, dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov byte [ebp - 0xb1], al
lea eax, [ebp - 0xc8]
push eax
call esi
push eax
mov ecx, edi
call fcn.00532cd3
lea eax, [ebp - 0xc8]
mov dword [ebp - 0xb8], 0x2bc
push eax
call esi
push eax
mov ecx, ebx
call fcn.00532cd3
mov ecx, dword [ebp - 0x208]
mov eax, ecx
mov dword [ecx + 0xa8], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055a658
mov esp, ebp
pop ebp
ret
Function at 0x4cbde0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x60b4e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov ebx, ecx
push edi
push 1
call esi
test ax, ax
js 0x4cbeed
push 2
call esi
test ax, ax
js 0x4cbeed
push 4
call esi
test ax, ax
js 0x4cbeed
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
mov dword [ebp - 0x18], 0
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebx + 0x88]
xor esi, esi
test eax, eax
jle 0x4cbeed
lea ebx, [ebx]
test esi, esi
js 0x4cbf13
cmp esi, eax
jge 0x4cbf13
mov eax, dword [ebx + 0x84]
mov edi, dword [eax + esi*4]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4cbede
push dword [edi + 0x20]
call fcn.005289e3
mov ecx, eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x18]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
test byte [edi + 8], 1
push eax
je 0x4cbead
push dword [ecx + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x4cbeb2
call fcn.00532cff
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push dword [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4cbede
test byte [edi + 8], 1
jne 0x4cbf00
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
push 0
call fcn.004cd6b0
cmp eax, dword [edi + 0x20]
je 0x4cbf00
mov eax, dword [ebx + 0x88]
inc esi
cmp esi, eax
jl 0x4cbe50
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055a658
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055a658
mov esp, ebp
pop ebp
ret
call fcn.00525b88
int3

Function at 0x4cd8d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push esi
push edi
mov ecx, 7
lea edi, [ebp - 0x24]
mov esi, ebx
push eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 8]
push 0
push 0x410
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebx + 0x14]
add ecx, 0xfffffe00
mov esi, dword [ebx + 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], esi
cmp ecx, 0xd
ja 0x4cd92d
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 8]
movzx ecx, si
movzx eax, dx
shl ecx, 0x10
or ecx, eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0x407
push dword [edi + 0x20]
mov dword [ebp - 0x18], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4de9b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x100]
test esi, esi
je 0x4dea38
mov eax, dword [ebp + 8]
shr eax, 8
push ebx
mov ebx, dword [esi + 0x34]
cmp al, 2
jne 0x4dea37
test ebx, ebx
je 0x4dea37
push dword [ebp + 0x10]
lea eax, [esi + 4]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x4de9ec
mov ecx, dword [ebx + 0x2c]
jmp 0x4dea10
mov eax, dword [esi + 0x34]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x40]
cmp dword [eax + 0x58], 0
cmovne edx, dword [ebp + 0x10]
add edx, dword [esi + 0x1c]
cmp edx, ecx
jl 0x4dea10
mov eax, dword [ebx + 0x3c]
add eax, ecx
mov ecx, edx
cmp edx, eax
cmovge ecx, eax
push ecx
mov ecx, edi
call fcn.004dd720
cmp dword [ebp + 8], 0x202
je 0x4dea2e
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x4dea37
push 0
mov ecx, edi
call fcn.004dd200
pop ebx
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4e5ca0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59aaa8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x60b4e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
call fcn.00526194
mov dword [ebp - 4], 0
mov dword [edi], vtable.CXTPMenuBarMDIMenuInfo.0
call fcn.00526109
mov ecx, eax
test ecx, ecx
je 0x4e5dd8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x24], eax
mov byte [ebp - 4], 1
call fcn.00526109
mov ecx, eax
test ecx, ecx
je 0x4e5de2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x28], eax
push 0x44
mov byte [ebp - 4], 2
call fcn.00525a98
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x4e5d39
mov ecx, eax
call fcn.00494e00
jmp 0x4e5d3b
xor eax, eax
push dword [ebp + 8]
mov ecx, eax
mov byte [ebp - 4], 2
mov dword [edi + 0x20], eax
call fcn.00496e90
mov ebx, dword [ebp + 0xc]
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], 0
call fcn.005322aa
call fcn.005322aa
mov ecx, dword [eax + 0xc]
movzx eax, bx
push eax
push ecx
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [edi + 0x2c], eax
call fcn.005322aa
mov ecx, dword [eax + 4]
call fcn.005316d4
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4e5dc2
call fcn.005322aa
mov ecx, dword [eax + 4]
lea eax, [ebp - 0x10]
push eax
call fcn.005316f5
mov esi, eax
cmp ebx, dword [esi + 0x54]
je 0x4e5da8
cmp dword [ebp - 0x10], 0
jne 0x4e5d88
jmp 0x4e5dc2
mov eax, dword [esi]
lea ecx, [edi + 0x24]
push 1
push ecx
mov ecx, esi
call dword [eax + 0x64]
mov eax, dword [esi]
lea ecx, [edi + 0x28]
push 6
push ecx
mov ecx, esi
call dword [eax + 0x64]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00404c28
push 0x80004005
call fcn.00404c28
int3