joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b2a00
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 0x4b2a38
test eax, eax
jne 0x4b2a4a
push edi
call fcn.0056bf2f
mov edi, dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push edi
push 0x4b2d40
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [esi + 4], eax
pop edi
pop esi
ret 4
test eax, eax
je 0x4b2a4a
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov dword [esi + 4], 0
pop esi
ret 4
Function at 0x4babd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
call fcn.004b9cf0
mov ecx, eax
jmp fcn.004bac60
Function at 0x4ce9c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x581230
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.0055f3b6
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.0055f3b6
mov esi, dword [esp + 0x40]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.0055e998
mov ebp, dword [esi]
push 0xf
mov ecx, edi
mov ebx, eax
call fcn.00453590
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.00453590
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.0055e998
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.0055f40d
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 2
call fcn.0055f40d
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], 3
call fcn.0055f40d
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 0x4e4670
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x581d68
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
mov ebp, ecx
push esi
mov dword [ebp + 8], 0
call fcn.0055f40d
mov esi, dword [esp + 0x48]
test esi, esi
je 0x4e4717
push edi
mov edi, dword [esp + 0x48]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
pop edi
je 0x4e4717
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4e4717
cmp ebx, 0xa
jb 0x4e4717
push 0
push ebx
push eax
lea ecx, [esp + 0x18]
call fcn.00563e02
lea eax, [esp + 0xc]
mov ecx, ebp
push eax
mov dword [esp + 0x40], 0
call fcn.004e4730
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x3c], 0xffffffff
call fcn.00563e7b
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 8
mov ecx, dword [esp + 0x34]
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 8
Function at 0x4ecdc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x582998
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
mov esi, ecx
push 1
lea ecx, [esp + 8]
call fcn.004eab30
mov ecx, dword [esp + 0x48]
lea eax, [esp + 4]
push 0
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x48]
sub esp, 0x10
mov edx, esp
mov dword [esp + 0x4c], 0
mov dword [edx], eax
mov eax, dword [esp + 0x5c]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x60]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov ecx, esi
call fcn.004ecfc0
lea ecx, [esp + 4]
mov dword [esp + 0x30], 0xffffffff
call fcn.004ea490
mov ecx, dword [esp + 0x28]
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret 0x14
Function at 0x4f04c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x582e4f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], 0
push ecx
lea eax, [esp + 0x30]
mov ebx, 1
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
mov dword [esp + 0x28], ebx
call fcn.00559862
push ecx
mov byte [esp + 0x28], 2
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.Images
call fcn.00559b5b
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
push ecx
mov ecx, esi
call fcn.004f0e50
mov edx, dword [esp + 8]
mov byte [esp + 0x20], 3
mov eax, dword [edx - 8]
test eax, eax
je 0x4f0542
lea eax, [esp + 8]
lea ecx, [esp + 0x2c]
push eax
call fcn.00559c26
push 0x5f
push 0x2e
lea ecx, [esp + 0x34]
call fcn.00551cdd
push 0x5f
push 0x5c
lea ecx, [esp + 0x34]
call fcn.00551cdd
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.00559862
mov dword [esp + 0xc], ebx
lea ecx, [esp + 8]
mov byte [esp + 0x20], bl
call fcn.00559aed
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 0
call fcn.00559aed
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret 8

Function at 0x4f06a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x582e98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0xc]
lea eax, [edi + 0x30]
push eax
call fcn.0047efc0
mov eax, dword [edi + 0x20]
mov dword [esp + 0x1c], 0
test eax, eax
jne 0x4f0700
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0047efe0
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 4
mov esi, dword [esp + 0x24]
test esi, esi
jne 0x4f072f
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0047efe0
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 4
lea ecx, [esp + 0x10]
lea ebx, [edi + 0x68]
push ecx
push esi
mov ecx, ebx
mov dword [esp + 0x18], 0
call fcn.005550d8
test eax, eax
jne 0x4f079a
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push esi
call fcn.00559b5b
mov ecx, edi
call fcn.004f05a0
test eax, eax
mov dword [esp + 0x10], eax
jne 0x4f078e
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0047efe0
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 4
push esi
mov ecx, ebx
mov edi, eax
call fcn.0055511c
mov dword [eax], edi
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0047efe0
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x14
ret 4
Function at 0x4f08c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x582ed8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x20]
cmp eax, edi
je 0x4f08f1
cmp dword [esi + 0x2c], edi
je 0x4f08f1
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebp, dword [esp + 0x28]
lea ecx, [esp + 0x10]
push ebp
call fcn.00559b5b
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], edi
cmp dword [eax - 8], edi
jne 0x4f091a
push str.OFFICE2007BLUE_INI
lea ecx, [esp + 0x14]
call fcn.00559c76
push 0x5f
push 0x2e
lea ecx, [esp + 0x18]
call fcn.00551cdd
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
mov dword [esi + 0x2c], ecx
mov ecx, esi
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], edi
mov dword [esi + 0x24], edi
call fcn.004f0420
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x20]
push str.TEXTFILE
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4f096a
test ebp, ebp
jne 0x4f096a
push ebx
mov ecx, esi
call fcn.004f0810
mov edi, eax
xor ebx, ebx
test edi, edi
je 0x4f09a1
mov ecx, dword [esi + 0x20]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4f09a1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [esi + 0x20]
push edi
push edx
mov dword [esi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esi + 0x24]
mov ebx, 1
add eax, ecx
mov dword [esi + 0x28], eax
mov ecx, dword [esi + 0x64]
test ecx, ecx
je 0x4f09b8
push 0
push 0
push 0
push 0x294f
call fcn.005367a0
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00559aed
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x4f0ac0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x582f30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push ecx
lea eax, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
mov dword [esp + 0x30], 1
call fcn.00559862
push ecx
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov byte [esp + 0x34], 2
call fcn.00559862
lea eax, [esp + 0x10]
mov ecx, esi
push eax
mov byte [esp + 0x34], 1
call fcn.004f0ef0
mov eax, dword [esp + 8]
xor ebx, ebx
cmp dword [eax - 8], ebx
jne 0x4f0b6a
lea ecx, [esp + 8]
mov byte [esp + 0x28], 1
call fcn.00559aed
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], bl
call fcn.00559aed
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], 0xffffffff
call fcn.00559aed
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop esi
pop ebx
add esp, 0x24
ret 0xc
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
push edx
push ecx
push str._i__i__i
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
call fcn.00541d07
mov eax, dword [esp + 0x28]
xor edx, edx
mov dh, byte [esp + 0x20]
and eax, 0xff
mov dl, byte [esp + 0x24]
add esp, 0x14
shl edx, 8
or edx, eax
lea ecx, [esp + 8]
mov esi, edx
mov byte [esp + 0x28], 1
call fcn.00559aed
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], bl
call fcn.00559aed
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], 0xffffffff
call fcn.00559aed
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret 0xc

Function at 0x4f39f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x583239
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.0055934f
mov eax, dword [0x5c9d6c]
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esi + 0x50], eax
mov ecx, dword [0x5c9d6c]
mov dword [esi + 0x54], ecx
mov dword [esi + 0x68], 0x59e2b8
mov dword [esi + 0x6c], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x70], edi
mov ecx, esi
mov byte [esp + 0x14], 3
mov dword [esi], 0x59e260
call fcn.005725e4
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 + 0x80], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x64], 1
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4fc950
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x583798
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.0055f1c2
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.00470060
mov edx, dword [esp + 0x24]
lea ecx, [esp + 4]
push ecx
push 1
push 0x5c7780
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov eax, dword [esp + 8]
add eax, 3
cmp eax, 0x12
jge 0x4f9e9d
mov eax, 0x12
lea ecx, [esp + 0xc]
mov dword [esi + 0x18], eax
call fcn.00470100
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0055f234
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret
jmp 0x4f9e30
Function at 0x508990
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, dword fs:[0]
mov edx, dword [esp + 0x18]
push 0xffffffffffffffff
push 0x584120
push eax
mov dword fs:[0], esp
sub esp, 0x20
cmp edx, 0xfffffffe
push esi
push edi
jne 0x508b02
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.0042547e
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.0055f3b6
lea ecx, [esp + 0x14]
call fcn.0042547e
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.0055f3b6
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.0055e998
push 0xf
mov edi, eax
call fcn.004b9cf0
mov ecx, eax
call fcn.004ba580
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x2c]
push 0x14
call fcn.004b9cf0
mov ecx, eax
call fcn.004ba580
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.0055e998
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 2
call fcn.0055f40d
mov dword [esp + 0xc], esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 3
call fcn.0055f40d
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 0x508b13
test eax, eax
je 0x508b13
xor esi, esi
jmp 0x508b18
mov esi, 1
test eax, eax
je 0x508b29
cmp eax, 1
je 0x508b29
mov eax, edx
mov edx, dword [esp + 0x50]
jmp 0x508b2d
mov eax, dword [esp + 0x50]
mov ecx, dword [ecx + 0x204]
mov edi, dword [ecx + 0x7c]
test edi, edi
je 0x508b40
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.00470ae0
mov ecx, eax
call fcn.00470db0
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x20
Function at 0x51a400
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push esi
mov esi, dword [ecx + 0x100]
test esi, esi
push edi
mov dword [esp + 8], ecx
je 0x51a49a
mov eax, dword [esp + 0x10]
mov edi, dword [esi + 0x34]
shr eax, 8
cmp al, 2
jne 0x51a49a
test edi, edi
je 0x51a49a
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 0x51a446
mov eax, dword [edi + 0x2c]
jmp 0x51a46b
mov edx, dword [esi + 0x34]
mov ecx, ebx
mov eax, dword [edx + 0x58]
test eax, eax
jne 0x51a454
mov ecx, ebp
mov eax, dword [esi + 0x1c]
add eax, ecx
mov ecx, dword [edi + 0x40]
cmp eax, ecx
jl 0x51a469
mov edx, dword [edi + 0x3c]
add ecx, edx
cmp eax, ecx
jl 0x51a46b
mov eax, ecx
mov esi, dword [esp + 0x10]
push eax
mov ecx, esi
call fcn.0051a380
mov eax, dword [esp + 0x18]
pop ebp
cmp eax, 0x202
pop ebx
je 0x51a491
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x51a49a
push 0
mov ecx, esi
call fcn.0051a270
pop edi
pop esi
pop ecx
ret 0xc

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

Disassembly:
push 0xffffffffffffffff
push 0x5855a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
mov ebx, ecx
push esi
mov dword [esp + 0xc], ebx
call fcn.004ea450
mov ebp, dword [esp + 0x28]
lea eax, [ebx + 0x20]
xor esi, esi
push eax
mov dword [esp + 0x1c], esi
mov dword [ebx], 0x5a2400
mov dword [ebx + 0x18], ebp
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x34], esi
call dword [sym.imp.USER32.dll_SetRectEmpty]
cmp ebp, esi
jle 0x520e4b
lea esi, [ebp*8]
push edi
push esi
call fcn.00555203
mov ecx, esi
mov esi, dword [esp + 0x28]
mov edx, ecx
mov edi, eax
shr ecx, 2
mov dword [ebx + 0x14], eax
push ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00555203
mov esi, dword [esp + 0x30]
mov ecx, ebp
mov dword [ebx + 0x1c], eax
mov edi, eax
mov eax, ecx
add esp, 8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov ecx, ebx
call fcn.00520e70
mov ecx, dword [esp + 0x10]
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc

Function at 0x52f400
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x586bbf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x5c9d6c]
push esi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x28], 1
call fcn.00552423
mov esi, dword [esp + 0x30]
add esp, 0x14
lea eax, [esp + 4]
mov ecx, esi
push eax
call fcn.00559862
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.00559aed
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x535310
Capabilities:
Link many functions at runtime

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], 0
call fcn.00535160
mov ecx, dword [eax + 4]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test ecx, ecx
je 0x535386
mov edi, dword [esi + 4]
mov ebx, dword [esi + 8]
cmp edi, ebx
je 0x535362
call fcn.00535160
mov esi, eax
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x535356
mov eax, dword [esi]
push str.GdipCreateFromHDC2
push eax
call ebp
mov dword [esi + 0x24], eax
lea ecx, [esp + 0x10]
push ecx
push ebx
push edi
call dword [esi + 0x24]
jmp 0x535386
call fcn.00535160
mov esi, eax
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x53537d
mov edx, dword [esi]
push str.GdipCreateFromHDC
push edx
call ebp
mov dword [esi + 0x28], eax
lea eax, [esp + 0x10]
push eax
push edi
call dword [esi + 0x28]
mov edi, dword [esp + 0x10]
test edi, edi
jne 0x535396
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
call fcn.00535160
mov esi, eax
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x5353b1
mov ecx, dword [esi]
push str.GdipSetPageUnit
push ecx
call ebp
mov dword [esi + 0x18], eax
push 2
push edi
call dword [esi + 0x18]
mov edi, dword [esp + 0x10]
call fcn.00535160
mov esi, eax
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x5353d6
mov edx, dword [esi]
push str.GdipSetSmoothingMode
push edx
call ebp
mov dword [esi + 0x1c], eax
push 2
push edi
call dword [esi + 0x1c]
mov edi, dword [esp + 0x10]
call fcn.00535160
mov esi, eax
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x5353fb
mov eax, dword [esi]
push str.GdipSetPixelOffsetMode
push eax
call ebp
mov dword [esi + 0x14], eax
push 4
push edi
call dword [esi + 0x14]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x5511a0
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.0053df80
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x55126b
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 0x55126b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x55121e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x551229
or bh, 8
and edi, 0x8000000
je 0x551244
mov eax, dword [0x5e233c]
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 0x55126b
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