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

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
push esi
cmp ebx, 0x112
push edi
mov esi, ecx
ja 0x4ae8af
cmp ebx, 0x112
je 0x4ae80b
mov eax, ebx
sub eax, 2
je 0x4ae7d4
sub eax, 3
je 0x4ae797
sub eax, 0x42
jne 0x4ae7b5
cmp ebp, dword [esi + 0x124]
jne 0x4ae7b5
mov eax, dword [esi - 0x20]
push 0
push 0x2fbf
push 0x113
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push ecx
push edx
push eax
push ebx
push ebp
mov ecx, esi
call fcn.004a1750
pop edi
pop esi
pop ebp
pop ebx
ret 0x14
mov eax, dword [esi + 0x128]
test eax, eax
je 0x4ae7b5
lea ecx, [esi - 0x3c]
call fcn.004a2450
test eax, eax
je 0x4ae7ed
mov eax, dword [eax + 0x1c]
cmp ebp, eax
jne 0x4ae7b5
mov ecx, dword [esi + 0x128]
push ecx
push ebp
call dword [sym.imp.USER32.dll_SetMenu]
mov dword [esi + 0x128], 0
jmp 0x4ae7b5
lea edi, [esi - 0x3c]
mov ecx, edi
call fcn.004b0dd0
test eax, eax
je 0x4ae7b5
push 0x43db60
mov ecx, 0x5d2b14
call fcn.005628e2
mov ecx, dword [eax + 4]
test ecx, ecx
jg 0x4ae7b5
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x4ae7b5
mov ecx, edi
call fcn.004a2570
test eax, eax
jne 0x4ae7b5
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
and eax, 0xfff0
cmp eax, 0xf100
jne 0x4ae7b5
mov ecx, dword [esp + 0x20]
cmp dword [ecx], 0
jne 0x4ae7b5
mov edx, dword [edi]
push 0x12
mov ecx, edi
call dword [edx + 0x170]
test eax, eax
je 0x4ae88e
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0x14
mov ecx, edi
call fcn.004a2540
test eax, eax
je 0x4ae8a3
push 0
push edi
mov ecx, eax
call fcn.00444750
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0x14
cmp ebx, 0x220
jb 0x4ae7b5
cmp ebx, 0x222
jbe 0x4ae79f
cmp ebx, 0x230
jne 0x4ae7b5
mov eax, dword [esi - 0x3c]
lea edi, [esi - 0x3c]
mov ecx, edi
call dword [eax + 0xdc]
test eax, eax
mov ecx, edi
je 0x4ae973
call fcn.004a2570
test eax, eax
je 0x4ae91d
mov ecx, edi
call fcn.004a2450
mov ecx, dword [eax + 0x1c]
push 0
push ecx
call dword [sym.imp.USER32.dll_SetMenu]
mov edx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword [edx], 0
mov eax, 1
pop ebx
ret 0x14
mov eax, dword [esi + 0x58]
mov ebx, dword [esp + 0x1c]
test ah, 4
jne 0x4ae947
mov eax, dword [ebx]
test eax, eax
jne 0x4ae93f
mov ecx, dword [esi + 0x128]
test ecx, ecx
je 0x4ae947
test eax, eax
jne 0x4ae93f
mov eax, ecx
push eax
mov ecx, edi
call fcn.004ae700
mov ecx, edi
call fcn.004a2450
mov eax, dword [eax + 0x1c]
push 0
push eax
call dword [sym.imp.USER32.dll_SetMenu]
mov ecx, edi
call fcn.004ad860
pop edi
pop esi
mov dword [ebx], 0
pop ebp
mov eax, 1
pop ebx
ret 0x14
call fcn.004a2450
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call fcn.0054e15b
test eax, eax
jne 0x4ae7b5
mov edx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword [edx], eax
mov eax, 1
pop ebx
ret 0x14
Function at 0x4af810
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
mov ebx, ecx
push esi
mov esi, dword [esp + 0x10]
mov ecx, dword [ebx + 0xa4]
push edi
and esi, 0xffff
call fcn.00499650
test esi, esi
jne 0x4af838
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 8
call fcn.005607cb
mov edi, dword [eax + 0xc]
test edi, edi
jne 0x4af84d
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 8
push 0xf1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x4af865
pop edi
pop esi
pop ebx
pop ecx
ret 8
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4af878
pop edi
pop esi
pop ebx
pop ecx
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4af88c
pop edi
pop esi
pop ebx
pop ecx
ret 8
xor eax, eax
push ebp
mov ax, word [esi + 6]
shl eax, 2
push eax
call fcn.00547b9a
xor edi, edi
add esp, 4
cmp word [esi + 6], di
mov dword [esp + 0x10], eax
jbe 0x4af8cf
mov ebp, eax
mov ecx, esi
call fcn.004af960
xor ecx, ecx
xor edx, edx
mov cx, word [eax + edi*2]
inc edi
mov dword [ebp], ecx
mov dx, word [esi + 6]
add ebp, 4
cmp edi, edx
jl 0x4af8ad
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov cx, word [esi + 6]
push ecx
push eax
mov ecx, ebx
call fcn.004af5c0
mov ebp, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4af940
mov ecx, ebx
call fcn.004a2f90
xor edi, edi
xor edx, edx
mov di, word [esi + 4]
mov dx, word [esi + 2]
mov ecx, dword [esp + 0x10]
push 0
push edi
push edx
xor edx, edx
mov dx, word [esi + 6]
push edx
mov edx, dword [esp + 0x28]
push ecx
push edx
mov ecx, eax
call fcn.00460720
test eax, eax
jne 0x4af91d
xor ebp, ebp
mov ax, word [esi + 2]
cmp ax, 0x10
je 0x4af940
and eax, 0xffff
mov ecx, eax
xor eax, eax
mov ax, word [esi + 4]
mov dword [ebx + 0xb4], ecx
mov dword [ebx + 0xb8], eax
mov eax, dword [esp + 0x10]
push eax
call fcn.00547bc3
add esp, 4
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret 8
Function at 0x4b1d60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x572b6b
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], 0x5850f8
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.00461970
mov edx, dword [eax]
push 0x2393
mov ecx, eax
call dword [edx + 0x18]
mov dword [esi + 0x38], eax
call fcn.00461970
mov edx, dword [eax]
push 0x2392
mov ecx, eax
call dword [edx + 0x18]
mov dword [esi + 0x3c], eax
call fcn.00461970
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 0x4b26c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x572c10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x5bc6c4]
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], eax
xor esi, esi
mov dword [esp + 0x24], esi
call fcn.00461970
mov edx, dword [eax]
lea ecx, [esp + 0x10]
push 0x23cb
push ecx
mov ecx, eax
call dword [edx + 8]
mov edx, dword [0x5bc6c4]
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.00545283
mov edx, dword [edi + 0x68]
add esp, 0xc
mov eax, dword [edx + 0x80]
cmp eax, esi
mov dword [esp + 0x18], eax
jle 0x4b2798
push ebx
mov ecx, dword [edi + 0x68]
push esi
call fcn.00443440
test eax, eax
je 0x4b2790
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call fcn.00441e40
mov eax, dword [eax]
mov edx, dword [esp + 0x10]
push eax
push edx
call fcn.00531767
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
sete bl
call fcn.0054c5f8
test bl, bl
je 0x4b2790
mov eax, ebp
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
push eax
push ecx
inc ebp
call fcn.00545283
add esp, 0xc
xor esi, esi
jmp 0x4b2791
inc esi
cmp esi, dword [esp + 0x1c]
jl 0x4b273b
pop ebx
lea edx, [esp + 0xc]
lea ecx, [edi + 0x60]
push edx
call fcn.0054c731
push 0
mov ecx, edi
call fcn.0054af27
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call fcn.0054c5f8
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.0054c5f8
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x4b5970
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 0x4b59a8
test eax, eax
jne 0x4b59ba
push edi
call fcn.005607cb
mov edi, dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push edi
push 0x4b5cb0
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [esi + 4], eax
pop edi
pop esi
ret 4
test eax, eax
je 0x4b59ba
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov dword [esi + 4], 0
pop esi
ret 4
Function at 0x4ceb20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x573ea0
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.00551f03
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.00551f03
mov esi, dword [esp + 0x40]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00551573
mov ebp, dword [esi]
push 0xf
mov ecx, edi
mov ebx, eax
call fcn.00445090
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.00445090
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.00551573
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.00551f5a
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 2
call fcn.00551f5a
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], 3
call fcn.00551f5a
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 0x4ec960
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5754c8
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.004ea6e0
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.004ecb60
lea ecx, [esp + 4]
mov dword [esp + 0x30], 0xffffffff
call fcn.004ea050
mov ecx, dword [esp + 0x28]
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret 0x14

Function at 0x4eea60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x575838
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.00551f5a
mov esi, dword [esp + 0x48]
test esi, esi
je 0x4eeb07
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 0x4eeb07
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4eeb07
cmp ebx, 0xa
jb 0x4eeb07
push 0
push ebx
push eax
lea ecx, [esp + 0x18]
call fcn.00558bce
lea eax, [esp + 0xc]
mov ecx, ebp
push eax
mov dword [esp + 0x40], 0
call fcn.004eeb20
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x3c], 0xffffffff
call fcn.00558c47
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 0x4f0790
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5759df
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.0054c36d
push ecx
mov byte [esp + 0x28], 2
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.Images
call fcn.0054c666
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
push ecx
mov ecx, esi
call fcn.004f1120
mov edx, dword [esp + 8]
mov byte [esp + 0x20], 3
mov eax, dword [edx - 8]
test eax, eax
je 0x4f0812
lea eax, [esp + 8]
lea ecx, [esp + 0x2c]
push eax
call fcn.0054c731
push 0x5f
push 0x2e
lea ecx, [esp + 0x34]
call fcn.00544b8e
push 0x5f
push 0x5c
lea ecx, [esp + 0x34]
call fcn.00544b8e
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.0054c36d
mov dword [esp + 0xc], ebx
lea ecx, [esp + 8]
mov byte [esp + 0x20], bl
call fcn.0054c5f8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 0
call fcn.0054c5f8
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret 8

Function at 0x4f0970
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x575a28
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.004748f0
mov eax, dword [edi + 0x20]
mov dword [esp + 0x1c], 0
test eax, eax
jne 0x4f09d0
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00474910
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 0x4f09ff
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00474910
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.005478e4
test eax, eax
jne 0x4f0a6a
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push esi
call fcn.0054c666
mov ecx, edi
call fcn.004f0870
test eax, eax
mov dword [esp + 0x10], eax
jne 0x4f0a5e
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00474910
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.00547928
mov dword [eax], edi
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00474910
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 0x4f0b90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x575a68
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 0x4f0bc1
cmp dword [esi + 0x2c], edi
je 0x4f0bc1
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebp, dword [esp + 0x28]
lea ecx, [esp + 0x10]
push ebp
call fcn.0054c666
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], edi
cmp dword [eax - 8], edi
jne 0x4f0bea
push str.OFFICE2007BLUE_INI
lea ecx, [esp + 0x14]
call fcn.0054c781
push 0x5f
push 0x2e
lea ecx, [esp + 0x18]
call fcn.00544b8e
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.004f06f0
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 0x4f0c3a
test ebp, ebp
jne 0x4f0c3a
push ebx
mov ecx, esi
call fcn.004f0ae0
mov edi, eax
xor ebx, ebx
test edi, edi
je 0x4f0c71
mov ecx, dword [esi + 0x20]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4f0c71
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 0x4f0c88
push 0
push 0
push 0
push 0x294f
call fcn.00524560
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0054c5f8
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 0x4f0d90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x575ac0
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.0054c36d
push ecx
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov byte [esp + 0x34], 2
call fcn.0054c36d
lea eax, [esp + 0x10]
mov ecx, esi
push eax
mov byte [esp + 0x34], 1
call fcn.004f11c0
mov eax, dword [esp + 8]
xor ebx, ebx
cmp dword [eax - 8], ebx
jne 0x4f0e3a
lea ecx, [esp + 8]
mov byte [esp + 0x28], 1
call fcn.0054c5f8
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], bl
call fcn.0054c5f8
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], 0xffffffff
call fcn.0054c5f8
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.00534c72
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.0054c5f8
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], bl
call fcn.0054c5f8
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], 0xffffffff
call fcn.0054c5f8
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret 0xc
Function at 0x501bb0
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 0x501c4a
mov eax, dword [esp + 0x10]
mov edi, dword [esi + 0x34]
shr eax, 8
cmp al, 2
jne 0x501c4a
test edi, edi
je 0x501c4a
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 0x501bf6
mov eax, dword [edi + 0x2c]
jmp 0x501c1b
mov edx, dword [esi + 0x34]
mov ecx, ebx
mov eax, dword [edx + 0x58]
test eax, eax
jne 0x501c04
mov ecx, ebp
mov eax, dword [esi + 0x1c]
add eax, ecx
mov ecx, dword [edi + 0x40]
cmp eax, ecx
jl 0x501c19
mov edx, dword [edi + 0x3c]
add ecx, edx
cmp eax, ecx
jl 0x501c1b
mov eax, ecx
mov esi, dword [esp + 0x10]
push eax
mov ecx, esi
call fcn.00501b30
mov eax, dword [esp + 0x18]
pop ebp
cmp eax, 0x202
pop ebx
je 0x501c41
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x501c4a
push 0
mov ecx, esi
call fcn.00501a20
pop edi
pop esi
pop ecx
ret 0xc

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

Disassembly:
push 0xffffffffffffffff
push 0x5775b8
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.004ea010
mov ebp, dword [esp + 0x28]
lea eax, [ebx + 0x20]
xor esi, esi
push eax
mov dword [esp + 0x1c], esi
mov dword [ebx], 0x5941ac
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 0x5085cb
lea esi, [ebp*8]
push edi
push esi
call fcn.00547b9a
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.00547b9a
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.005085f0
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 0x516940
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x578bcf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x5bc6c4]
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.00545283
mov esi, dword [esp + 0x30]
add esp, 0x14
lea eax, [esp + 4]
mov ecx, esi
push eax
call fcn.0054c36d
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.0054c5f8
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x51c6f0
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.0051c540
mov ecx, dword [eax + 4]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test ecx, ecx
je 0x51c766
mov edi, dword [esi + 4]
mov ebx, dword [esi + 8]
cmp edi, ebx
je 0x51c742
call fcn.0051c540
mov esi, eax
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x51c736
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 0x51c766
call fcn.0051c540
mov esi, eax
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x51c75d
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 0x51c776
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
call fcn.0051c540
mov esi, eax
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x51c791
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.0051c540
mov esi, eax
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x51c7b6
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.0051c540
mov esi, eax
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x51c7db
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