joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48f620
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x532fb3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.0051499b
xor edi, edi
mov dword [esi + 0x20], 0x5465d8
mov dword [esp + 0x14], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x28], edi
mov ecx, esi
mov byte [esp + 0x14], 1
mov dword [esi], 0x546568
call fcn.0052933b
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x1c], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x498f40
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5338b7
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
mov ebx, dword [esp + 0x138]
push ebp
push esi
cmp ebx, 0x60
push edi
jb 0x498f89
cmp ebx, 0x69
ja 0x498f89
movsx eax, byte [esp + 0x140]
add ebx, 0xffffffd0
xor ecx, ecx
cmp eax, ebx
sete cl
mov eax, ecx
jmp 0x499179
push 2
push ebx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
test al, al
je 0x499150
mov edx, dword [esp + 0x140]
push edx
call fcn.004992d0
mov cl, byte [esp + 0x144]
add esp, 4
cmp cl, bl
mov byte [esp + 0x13], al
je 0x499174
cmp al, bl
je 0x499174
mov ebp, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
xor esi, esi
push esi
push esi
call ebp
mov edi, eax
cmp edi, 1
jl 0x499150
xor ebx, ebx
mov dword [esp + 0x18], 0x546e58
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
cmp edi, esi
mov dword [esp + 0x138], esi
jne 0x49900b
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
jmp 0x499032
lea eax, [edi*4]
push eax
call fcn.00510938
add esp, 4
mov dword [esp + 0x1c], eax
push edi
push eax
call fcn.00492d00
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
push ebx
push edi
call ebp
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
jne 0x49905d
mov dword [esp + 0x18], 0x546e58
mov dword [esp + 0x138], 1
jmp 0x499143
cmp edi, esi
mov dword [esp + 0x2c], esi
jle 0x499130
mov ebp, dword [sym.imp.USER32.dll_ToAsciiEx]
mov esi, ebx
mov dword [esp + 0x14], 0
mov edx, dword [esi]
push edx
mov edx, dword [esp + 0x148]
lea eax, [esp + 0x18]
push 0
lea ecx, [esp + 0x38]
push eax
push ecx
push 0
push edx
call ebp
cmp eax, 1
jne 0x4990c1
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0x140]
cmp cl, al
je 0x499154
push eax
call fcn.004992d0
mov cl, byte [esp + 0x17]
add esp, 4
cmp cl, al
je 0x499154
mov bl, byte [esp + 0x40]
mov byte [esp + 0x40], 0x81
mov eax, dword [esi]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x148]
push 0
lea edx, [esp + 0x38]
push ecx
push edx
push 0
push eax
call ebp
cmp eax, 1
jne 0x499112
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0x140]
cmp cl, al
je 0x499192
push eax
call fcn.004992d0
mov cl, byte [esp + 0x17]
add esp, 4
cmp cl, al
je 0x499192
mov eax, dword [esp + 0x2c]
add esi, 4
inc eax
mov byte [esp + 0x40], bl
mov ebx, dword [esp + 0x1c]
cmp eax, edi
mov dword [esp + 0x2c], eax
jl 0x499071
xor esi, esi
mov dword [esp + 0x18], 0x546e58
mov dword [esp + 0x138], 4
cmp ebx, esi
je 0x499150
push ebx
call fcn.00510961
add esp, 4
xor eax, eax
jmp 0x499179
mov dword [esp + 0x18], 0x546e58
test ebx, ebx
mov dword [esp + 0x138], 2
je 0x499174
push ebx
call fcn.00510961
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x12c
ret
mov dword [esp + 0x18], 0x546e58
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x138], 3
test eax, eax
je 0x499174
push eax
jmp 0x49916c
Function at 0x49a310
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x533adb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 8], esi
mov dword [esi + 0x20], 0x5438e0
mov dword [esi + 0x24], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x28], edi
mov dword [esp + 0x14], edi
call fcn.0043fb00
mov edx, dword [eax]
push 0x2393
mov ecx, eax
call dword [edx + 0x18]
mov dword [esi + 0x38], eax
call fcn.0043fb00
mov edx, dword [eax]
push 0x2392
mov ecx, eax
call dword [edx + 0x18]
mov dword [esi + 0x3c], eax
call fcn.0043fb00
mov edx, dword [eax]
push 0x2391
mov ecx, eax
call dword [edx + 0x18]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x40], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x14], edi
mov dword [esi + 0x34], eax
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x49ac10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x533b80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x570360]
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], eax
xor esi, esi
mov dword [esp + 0x24], esi
call fcn.0043fb00
mov edx, dword [eax]
lea ecx, [esp + 0x10]
push 0x23cb
push ecx
mov ecx, eax
call dword [edx + 8]
mov edx, dword [0x570360]
mov ebp, 1
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x10]
push ebp
lea ecx, [esp + 0x10]
push eax
push ecx
mov byte [esp + 0x30], 1
call fcn.0050e4c5
mov edx, dword [edi + 0x68]
add esp, 0xc
mov eax, dword [edx + 0x80]
cmp eax, esi
mov dword [esp + 0x18], eax
jle 0x49ace8
push ebx
mov ecx, dword [edi + 0x68]
push esi
call fcn.004da430
test eax, eax
je 0x49ace0
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call fcn.004a1b70
mov eax, dword [eax]
mov edx, dword [esp + 0x10]
push eax
push edx
call fcn.00412841
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
sete bl
call fcn.00510bf7
test bl, bl
je 0x49ace0
mov eax, ebp
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
push eax
push ecx
inc ebp
call fcn.0050e4c5
add esp, 0xc
xor esi, esi
jmp 0x49ace1
inc esi
cmp esi, dword [esp + 0x1c]
jl 0x49ac8b
pop ebx
lea edx, [esp + 0xc]
lea ecx, [edi + 0x60]
push edx
call fcn.00510d30
push 0
mov ecx, edi
call fcn.00513ac6
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call fcn.00510bf7
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00510bf7
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x49e386
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x533d6e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
xor eax, eax
mov dword [esi + 8], 0x54788c
mov dword [esp + 0x10], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x2c], 0x547880
push 1
mov byte [esp + 0x14], 2
mov dword [esi], 0x54787c
mov dword [esi + 0x1c], eax
mov dword [esi + 4], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x40], eax
call fcn.0049ead0
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x49f2c0
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
test eax, eax
mov eax, dword [esi + 4]
je 0x49f2f8
test eax, eax
jne 0x49f30a
push edi
call fcn.00526483
mov edi, dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push edi
push 0x49f600
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [esi + 4], eax
pop edi
pop esi
ret 4
test eax, eax
je 0x49f30a
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov dword [esi + 4], 0
pop esi
ret 4
Function at 0x4a6e90
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x1c
push esi
mov esi, dword [esp + 0x24]
push edi
cmp esi, 8
mov edi, ecx
je 0x4a6ed5
cmp esi, 0x21
jb 0x4a6eaa
cmp esi, 0x2e
jbe 0x4a6ed5
cmp esi, 0x43
je 0x4a6ebe
cmp esi, 0x56
je 0x4a6ebe
cmp esi, 0x58
je 0x4a6ebe
cmp esi, 0x5a
jne 0x4a6ecb
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x4a6ed5
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret 8
mov ecx, dword [esp + 0x2c]
mov eax, dword [edi + 0x1c]
lea edx, [esp + 8]
mov dword [esp + 0x14], ecx
push edx
mov ecx, edi
mov dword [esp + 0x10], 0x100
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], esi
call fcn.00514630
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
add esp, 0x1c
ret 8

Function at 0x4a7100
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x1c
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 8]
test eax, eax
jne 0x4a7118
pop edi
xor eax, eax
pop ebx
add esp, 0x1c
ret 8
mov ebx, dword [esp + 0x28]
cmp ebx, 0x26
je 0x4a7130
cmp ebx, 0x28
je 0x4a7130
cmp ebx, 0x22
je 0x4a7130
cmp ebx, 0x21
jne 0x4a713d
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x4a7147
pop edi
xor eax, eax
pop ebx
add esp, 0x1c
ret 8
mov eax, dword [edi + 8]
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindow]
push 5
push eax
call esi
push 1
push eax
call esi
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 8]
lea edx, [esp + 0xc]
push edx
push eax
mov dword [esp + 0x18], 0x100
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ecx
call dword [sym.imp.USER32.dll_IsDialogMessageA]
neg eax
sbb eax, eax
pop esi
pop edi
pop ebx
neg eax
add esp, 0x1c
ret 8

Function at 0x4b3470
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push esi
mov esi, dword [ecx + 0x60]
test esi, esi
push edi
mov dword [esp + 8], ecx
je 0x4b351f
mov eax, dword [esp + 0x10]
mov edi, dword [esi + 0x34]
shr eax, 8
cmp al, 2
jne 0x4b351f
test edi, edi
je 0x4b351f
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x1c]
push ebx
lea ecx, [esi + 4]
push ebp
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x4b34cb
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
call dword [edx + 0x24]
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x4b34cb
mov eax, dword [edi + 0x2c]
jmp 0x4b34f0
mov eax, dword [esi + 0x34]
mov ecx, dword [eax + 0x58]
test ecx, ecx
mov ecx, ebx
jne 0x4b34d9
mov ecx, ebp
mov eax, dword [esi + 0x1c]
add eax, ecx
mov ecx, dword [edi + 0x40]
cmp eax, ecx
jl 0x4b34ee
mov edx, dword [edi + 0x3c]
add ecx, edx
cmp eax, ecx
jl 0x4b34f0
mov eax, ecx
mov esi, dword [esp + 0x10]
push eax
mov ecx, esi
call fcn.004b33a0
mov eax, dword [esp + 0x18]
pop ebp
cmp eax, 0x202
pop ebx
je 0x4b3516
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x4b351f
push 0
mov ecx, esi
call fcn.004b3320
pop edi
pop esi
pop ecx
ret 0xc
Function at 0x4c3230
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5359e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, 0xaa
mov ecx, 0x55
xor esi, esi
mov word [esp + 0x20], cx
mov word [esp + 0x22], ax
mov word [esp + 0x24], cx
mov word [esp + 0x26], ax
mov word [esp + 0x28], cx
mov word [esp + 0x2a], ax
mov word [esp + 0x2c], cx
mov word [esp + 0x2e], ax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], vtable.CBitmap.0
lea eax, [esp + 0x20]
mov dword [esp + 0x38], esi
push eax
push 1
push 1
push 8
push 8
call dword [sym.imp.GDI32.dll_CreateBitmap]
push eax
lea ecx, [esp + 0x1c]
call fcn.0051887a
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], vtable.CBrush.0
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
neg eax
sbb eax, eax
mov byte [esp + 0x38], 1
and eax, ecx
push eax
call dword [sym.imp.GDI32.dll_CreatePatternBrush]
push eax
lea ecx, [esp + 0x14]
call fcn.0051887a
mov esi, dword [esp + 0x40]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00517e9e
mov ebp, dword [esi]
push 0xf
mov ecx, edi
mov ebx, eax
call fcn.00478060
push eax
mov ecx, esi
call dword [ebp + 0x2c]
mov edx, dword [esi]
push 0x14
mov ecx, edi
mov ebp, eax
mov dword [esp + 0x44], edx
call fcn.00478060
mov edx, dword [esp + 0x40]
push eax
mov ecx, esi
call dword [edx + 0x30]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x44]
push 0xf00021
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0xc]
mov edi, dword [eax]
mov eax, dword [eax + 8]
sub ecx, edx
sub eax, edi
push ecx
push eax
mov eax, dword [esi + 4]
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_PatBlt]
push ebx
mov ecx, esi
call fcn.00517e9e
mov edx, dword [esi]
push ebp
mov ecx, esi
call dword [edx + 0x2c]
mov ecx, dword [esp + 0x40]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x30]
lea ecx, [esp + 0x10]
call fcn.005188d1
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 2
call fcn.005188d1
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], 3
call fcn.005188d1
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
Function at 0x4e2c60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x536639
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.0051499b
mov eax, dword [0x570360]
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esi + 0x50], eax
mov ecx, dword [0x570360]
mov dword [esi + 0x54], ecx
lea ecx, [esi + 0x68]
mov byte [esp + 0x14], 2
call fcn.004e3290
mov ecx, esi
mov byte [esp + 0x14], 3
mov dword [esi], 0x54f9b8
call fcn.0052933b
lea edx, [esi + 0x40]
or eax, 0xffffffff
push edx
mov dword [esi + 0x30], 1
mov dword [esi + 0x2c], 1
mov dword [esi + 0x38], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x3c], edi
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x60], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x64], 1
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4ea470
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x536ba8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00518686
mov eax, dword [esi + 0x1c]
lea ecx, [esp + 0xc]
add eax, 0x10c
mov dword [esp + 0x38], 0
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0042a840
mov edx, dword [esp + 0x24]
lea ecx, [esp + 4]
push ecx
push 1
push 0x574808
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov eax, dword [esp + 8]
add eax, 3
cmp eax, 0x12
jge 0x4e938d
mov eax, 0x12
lea ecx, [esp + 0xc]
mov dword [esi + 0x18], eax
call fcn.0042a8a0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.005186f8
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret
jmp 0x4e9320
Function at 0x4f9b10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5376b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push ebp
mov edx, dword [esp + 0x80]
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x84]
push 5
mov eax, dword [esi + 0x78]
push 3
mov ebx, dword [eax + 0x1c]
mov ebp, dword [eax + 0x18]
lea eax, [esp + 0x34]
add ebp, edx
push eax
sub edi, ebx
mov dword [esp + 0x1c], ebp
call fcn.0042bc80
mov ecx, dword [eax]
add esp, 0xc
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x5c]
mov ebx, dword [eax + 4]
push esi
call fcn.005185d2
lea edx, [esi + 0x7c]
lea eax, [esp + 0x5c]
push edx
push eax
lea ecx, [esp + 0x54]
mov dword [esp + 0x80], 0
call fcn.0042a840
push 0x582a60
lea ecx, [esp + 0x88]
mov byte [esp + 0x7c], 1
call fcn.00510c65
mov eax, dword [esp + 0x84]
lea edx, [esp + 0x1c]
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x70]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x84]
call fcn.00510bf7
mov edx, dword [esp + 0x20]
lea eax, [edx + ebx]
mov ebx, dword [esi + 0x6c]
dec ebx
mov dword [esp + 0x28], eax
test ebx, ebx
jl 0x4f9cac
add eax, ebp
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x68]
mov ecx, dword [0x570360]
mov ebp, dword [eax + ebx*4]
mov dword [esp + 0x84], ecx
lea edx, [esp + 0x84]
mov ecx, ebp
push edx
mov byte [esp + 0x7c], 2
call fcn.005120c5
mov eax, dword [esp + 0x84]
lea edx, [esp + 0x2c]
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x70]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
cmp eax, ecx
jg 0x4f9c42
mov eax, ecx
mov ecx, dword [esp + 0x34]
mov edx, edi
add eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
sub edx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x3c], edx
test ebp, ebp
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], ecx
je 0x4f9c6f
mov ebp, dword [ebp + 0x1c]
mov eax, dword [esp + 0x80]
lea edx, [esp + 0x3c]
push edx
push ebp
push eax
call fcn.00513336
mov ecx, dword [esi + 0x78]
mov ebp, dword [esp + 0x18]
mov byte [esp + 0x78], 1
mov edx, dword [ecx + 0x14]
lea ecx, [esp + 0x84]
add edx, ebp
sub edi, edx
call fcn.00510bf7
dec ebx
jns 0x4f9bf1
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x78], 0
mov dword [esi + 0xc0], ecx
lea ecx, [esp + 0x4c]
mov dword [esi + 0xc4], eax
call fcn.0042a8a0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x78], 0xffffffff
call fcn.00518644
mov ecx, dword [esp + 0x70]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x6c
ret 0xc
Function at 0x4ffc20
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, dword fs:[0]
mov edx, dword [esp + 0x18]
push 0xffffffffffffffff
push 0x537e10
push eax
mov dword fs:[0], esp
sub esp, 0x20
cmp edx, 0xfffffffe
push esi
push edi
jne 0x4ffd92
mov ecx, 0x55
mov eax, 0xaa
mov word [esp + 0x18], cx
mov word [esp + 0x1c], cx
mov word [esp + 0x20], cx
mov word [esp + 0x24], cx
push ebx
lea ecx, [esp + 0xc]
mov word [esp + 0x1e], ax
mov word [esp + 0x22], ax
mov word [esp + 0x26], ax
mov word [esp + 0x2a], ax
call fcn.004121b4
mov dword [esp + 0xc], vtable.CBitmap.0
lea eax, [esp + 0x1c]
mov dword [esp + 0x34], 0
push eax
push 1
push 1
push 8
push 8
call dword [sym.imp.GDI32.dll_CreateBitmap]
push eax
lea ecx, [esp + 0x10]
call fcn.0051887a
lea ecx, [esp + 0x14]
call fcn.004121b4
mov dword [esp + 0x14], vtable.CBrush.0
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
neg eax
sbb eax, eax
mov byte [esp + 0x34], 1
and eax, ecx
push eax
call dword [sym.imp.GDI32.dll_CreatePatternBrush]
push eax
lea ecx, [esp + 0x18]
call fcn.0051887a
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.00517e9e
push 0xf
mov edi, eax
call fcn.00439a10
mov ecx, eax
call fcn.0043a2a0
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x2c]
push 0x14
call fcn.00439a10
mov ecx, eax
call fcn.0043a2a0
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x30]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov ebx, dword [esp + 0x40]
sub eax, edx
sub ecx, ebx
push 0xf00021
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push ebx
push eax
call dword [sym.imp.GDI32.dll_PatBlt]
push edi
mov ecx, esi
call fcn.00517e9e
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 2
call fcn.005188d1
mov dword [esp + 0xc], esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 3
call fcn.005188d1
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x20
mov eax, dword [esp + 0x54]
cmp eax, 2
je 0x4ffda3
test eax, eax
je 0x4ffda3
xor esi, esi
jmp 0x4ffda8
mov esi, 1
test eax, eax
je 0x4ffdb9
cmp eax, 1
je 0x4ffdb9
mov eax, edx
mov edx, dword [esp + 0x50]
jmp 0x4ffdbd
mov eax, dword [esp + 0x50]
mov ecx, dword [ecx + 0x204]
mov edi, dword [ecx + 0x7c]
test edi, edi
je 0x4ffdd0
mov ecx, edx
mov edx, eax
mov eax, ecx
xor ecx, ecx
test esi, esi
sete cl
push ecx
push eax
mov eax, dword [esp + 0x40]
push edx
lea edx, [esp + 0x48]
push edx
push eax
call fcn.0042b3c0
mov ecx, eax
call fcn.0042b690
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x20
Function at 0x505c70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x53813b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
mov esi, ecx
push edi
mov ecx, dword [esp + 0x1c]
xor edi, edi
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
push 0x583504
lea ecx, [esi + 0x2c]
mov dword [esp + 0xc], esi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
call fcn.00510c65
lea ecx, [esi + 0x30]
mov dword [esp + 0x14], edi
call fcn.00506640
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x70], 0x5542a4
mov dword [esi + 0x74], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x78], edi
mov dword [esi], 0x554290
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x505d20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x538179
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x554290
mov dword [esp + 0x14], 2
call fcn.00505db0
lea eax, [esi + 0x70]
mov dword [esp + 8], eax
mov dword [eax], 0x5542a4
mov eax, dword [eax + 4]
mov byte [esp + 0x14], 3
test eax, eax
je 0x505d74
push eax
call fcn.00510961
add esp, 4
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 0
call fcn.005066c0
lea ecx, [esi + 0x2c]
mov dword [esp + 0x14], 0xffffffff
call fcn.00510bf7
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x509f80
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004128f0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x50a04b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x50a04b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x509ffe
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x50a009
or bh, 8
and edi, 0x8000000
je 0x50a024
mov eax, dword [0x58a15c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x50a04b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret