joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50dc00
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 0x50dd4f
cmp ebx, 0x112
je 0x50dcab
mov eax, ebx
sub eax, 2
je 0x50dc74
sub eax, 3
je 0x50dc37
sub eax, 0x42
jne 0x50dc55
cmp ebp, dword [esi + 0x124]
jne 0x50dc55
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.005132a0
pop edi
pop esi
pop ebp
pop ebx
ret 0x14
mov eax, dword [esi + 0x128]
test eax, eax
je 0x50dc55
lea ecx, [esi - 0x3c]
call fcn.00513fc0
test eax, eax
je 0x50dc8d
mov eax, dword [eax + 0x1c]
cmp ebp, eax
jne 0x50dc55
mov ecx, dword [esi + 0x128]
push ecx
push ebp
call dword [sym.imp.USER32.dll_SetMenu]
mov dword [esi + 0x128], 0
jmp 0x50dc55
lea edi, [esi - 0x3c]
mov ecx, edi
call fcn.00510330
test eax, eax
je 0x50dc55
push 0x4c7980
mov ecx, 0x79f4f4
call fcn.00632d2b
mov ecx, dword [eax + 4]
test ecx, ecx
jg 0x50dc55
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x50dc55
mov ecx, edi
call fcn.005140e0
test eax, eax
jne 0x50dc55
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
and eax, 0xfff0
cmp eax, 0xf100
jne 0x50dc55
mov ecx, dword [esp + 0x20]
cmp dword [ecx], 0
jne 0x50dc55
mov edx, dword [edi]
push 0x12
mov ecx, edi
call dword [edx + 0x174]
test eax, eax
je 0x50dd2e
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0x14
mov ecx, edi
call fcn.005140b0
test eax, eax
je 0x50dd43
push 0
push edi
mov ecx, eax
call fcn.004c7860
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0x14
cmp ebx, 0x220
jb 0x50dc55
cmp ebx, 0x222
jbe 0x50dc3f
cmp ebx, 0x230
jne 0x50dc55
mov eax, dword [esi - 0x3c]
lea edi, [esi - 0x3c]
mov ecx, edi
call dword [eax + 0xdc]
test eax, eax
mov ecx, edi
je 0x50de13
call fcn.005140e0
test eax, eax
je 0x50ddbd
mov ecx, edi
call fcn.00513fc0
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 0x50dde7
mov eax, dword [ebx]
test eax, eax
jne 0x50dddf
mov ecx, dword [esi + 0x128]
test ecx, ecx
je 0x50dde7
test eax, eax
jne 0x50dddf
mov eax, ecx
push eax
mov ecx, edi
call fcn.0050dba0
mov ecx, edi
call fcn.00513fc0
mov eax, dword [eax + 0x1c]
push 0
push eax
call dword [sym.imp.USER32.dll_SetMenu]
mov ecx, edi
call fcn.0050cd10
pop edi
pop esi
mov dword [ebx], 0
pop ebp
mov eax, 1
pop ebx
ret 0x14
call fcn.00513fc0
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call fcn.0061aafa
test eax, eax
jne 0x50dc55
mov edx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword [edx], eax
mov eax, 1
pop ebx
ret 0x14
Function at 0x50ecb0
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.00516890
test esi, esi
jne 0x50ecd8
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 8
call fcn.006306d8
mov edi, dword [eax + 0xc]
test edi, edi
jne 0x50eced
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 0x50ed05
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 0x50ed18
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 0x50ed2c
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.0061431c
xor edi, edi
add esp, 4
cmp word [esi + 6], di
mov dword [esp + 0x10], eax
jbe 0x50ed6f
mov ebp, eax
mov ecx, esi
call fcn.0050ee00
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 0x50ed4d
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov cx, word [esi + 6]
push ecx
push eax
mov ecx, ebx
call fcn.0050ea50
mov ebp, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x50ede0
mov ecx, ebx
call fcn.00514b40
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.004cf610
test eax, eax
jne 0x50edbd
xor ebp, ebp
mov ax, word [esi + 2]
cmp ax, 0x10
je 0x50ede0
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.00614345
add esp, 4
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret 8
Function at 0x511d90
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, ecx
push edi
push ebp
mov ecx, dword [esi + 0xa4]
push eax
call fcn.00516c80
mov ebx, eax
mov eax, dword [esi + 0x78]
cmp eax, 0xffffffff
je 0x511dee
cmp dword [esi + 0xa8], 5
jne 0x511dee
cmp dword [esi + 0xa0], 1
jne 0x511dee
test ebx, ebx
je 0x511dd0
cmp dword [ebx + 0x3c], eax
je 0x511dee
cmp eax, dword [esi + 0x74]
jne 0x511de3
mov edx, dword [esi]
push 0
push 0xffffffffffffffff
mov ecx, esi
call dword [edx + 0xc4]
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.00512150
test ebx, ebx
mov ecx, esi
je 0x511ebd
call fcn.005140e0
test eax, eax
jne 0x511ea6
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xd8]
test eax, eax
je 0x511ea6
push esi
push 0x75cf08
call fcn.0061a8c0
add esp, 8
test eax, eax
je 0x511ea6
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x511ea6
mov ecx, esi
call fcn.005140b0
mov edi, eax
test edi, edi
je 0x511ea6
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x511ea6
mov ecx, dword [edi + 0x70]
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x511ea6
push 1
mov ecx, edi
call fcn.004c6830
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.00512150
mov edx, dword [esi]
push 0
push 0xffffffffffffffff
mov ecx, esi
call dword [edx + 0xc4]
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx]
push ebp
push ecx
mov ecx, ebx
call dword [eax + 0x110]
push 0
mov ecx, edi
call fcn.004c6830
mov edx, dword [edi]
push 0
mov ecx, edi
call dword [edx + 0x54]
mov ecx, edi
call fcn.004c5ac0
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx]
push ebp
push ecx
mov ecx, ebx
call dword [eax + 0xf4]
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
call fcn.0061519f
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x515850
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6449a3
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.006185da
xor edi, edi
mov dword [esi + 0x20], 0x689460
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], 0x6893f0
call fcn.00635e5f
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 0x51c420
Capabilities:
Access peb ldr_data

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

Disassembly:
push 0xffffffffffffffff
push 0x644f70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x7563bc]
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], eax
xor esi, esi
mov dword [esp + 0x24], esi
call fcn.004faaa0
mov edx, dword [eax]
lea ecx, [esp + 0x10]
push 0x23cb
push ecx
mov ecx, eax
call dword [edx + 8]
mov edx, dword [0x7563bc]
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.00610e57
mov edx, dword [edi + 0x68]
add esp, 0xc
mov eax, dword [edx + 0x80]
cmp eax, esi
mov dword [esp + 0x18], eax
jle 0x51ce08
push ebx
mov ecx, dword [edi + 0x68]
push esi
call fcn.004d6d30
test eax, eax
je 0x51ce00
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call fcn.004c4de0
mov eax, dword [eax]
mov edx, dword [esp + 0x10]
push eax
push edx
call fcn.004ad30b
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
sete bl
call fcn.00618d7e
test bl, bl
je 0x51ce00
mov eax, ebp
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
push eax
push ecx
inc ebp
call fcn.00610e57
add esp, 0xc
xor esi, esi
jmp 0x51ce01
inc esi
cmp esi, dword [esp + 0x1c]
jl 0x51cdab
pop ebx
lea edx, [esp + 0xc]
lea ecx, [edi + 0x60]
push edx
call fcn.00618eb7
push 0
mov ecx, edi
call fcn.006176d2
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call fcn.00618d7e
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00618d7e
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x64511e
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], 0x68a0d8
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], 0x68a0cc
push 1
mov byte [esp + 0x14], 2
mov dword [esi], 0x68a0c8
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.00520880
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x521070
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 0x5210a8
test eax, eax
jne 0x5210ba
push edi
call fcn.006306d8
mov edi, dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push edi
push 0x5213b0
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [esi + 4], eax
pop edi
pop esi
ret 4
test eax, eax
je 0x5210ba
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov dword [esi + 4], 0
pop esi
ret 4
Function at 0x52aab0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6458f7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x7563bc]
push ebx
push esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov esi, dword [esp + 0x34]
mov ebx, 1
mov dword [esp + 0x28], ebx
fld qword [esi]
call fcn.004ad144
test eax, eax
jne 0x52ab20
lea ecx, [esp + 0x34]
push str._H:_M:_S
push ecx
mov ecx, esi
call fcn.004a3e60
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 2
call fcn.00618eb7
mov byte [esp + 0x28], bl
lea ecx, [esp + 0x34]
jmp 0x52aba1
mov edx, dword [esi]
mov eax, dword [esi + 4]
fld qword [esi]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
call fcn.004ad144
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
fild qword [esp + 0x10]
fcomp qword [esp + 0x18]
fnstsw ax
test ah, 0x40
je 0x52ab79
lea ecx, [esp + 0x34]
push str._Y__d__m
push ecx
mov ecx, esi
call fcn.004a3e60
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 3
call fcn.00618eb7
mov byte [esp + 0x28], bl
lea ecx, [esp + 0x34]
jmp 0x52aba1
lea edx, [esp + 0x34]
push str._Y__d__mT_H:_M:_S
push edx
mov ecx, esi
call fcn.004a3e60
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 4
call fcn.00618eb7
mov byte [esp + 0x28], bl
lea ecx, [esp + 0x34]
call fcn.00618d7e
mov esi, dword [esp + 0x30]
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.00618af3
mov dword [esp + 0xc], ebx
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call fcn.00618d7e
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x52d6d0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x645b93
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x68c1d4
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x10], 1
test eax, eax
jne 0x52d71a
mov eax, dword [esi + 0x44]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x52d71a
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x52d71a
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esi + 0x44]
call fcn.00618d7e
lea ecx, [esi + 0x40]
mov byte [esp + 0x10], 0
call fcn.00618d7e
mov ecx, esi
mov dword [esp + 0x10], 0xffffffff
call fcn.0052ae20
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x52e430
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x645c38
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.0061d72a
mov esi, dword [esp + 0x48]
test esi, esi
je 0x52e4d7
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 0x52e4d7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x52e4d7
cmp ebx, 0xa
jb 0x52e4d7
push 0
push ebx
push eax
lea ecx, [esp + 0x18]
call fcn.006262bb
lea eax, [esp + 0xc]
mov ecx, ebp
push eax
mov dword [esp + 0x40], 0
call fcn.0052e4f0
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x3c], 0xffffffff
call fcn.00626334
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 0x52ea80
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, dword fs:[0]
mov edx, dword [esp + 0x18]
push 0xffffffffffffffff
push 0x645c70
push eax
mov dword fs:[0], esp
sub esp, 0x20
cmp edx, 0xfffffffe
push esi
push edi
jne 0x52ebf2
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.00409100
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.0061d6d3
lea ecx, [esp + 0x14]
call fcn.00409100
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.0061d6d3
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.0061cc87
push 0xf
mov edi, eax
call fcn.005009d0
mov ecx, eax
call fcn.00501260
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x2c]
push 0x14
call fcn.005009d0
mov ecx, eax
call fcn.00501260
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.0061cc87
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 2
call fcn.0061d72a
mov dword [esp + 0xc], esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 3
call fcn.0061d72a
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 0x52ec03
test eax, eax
je 0x52ec03
xor esi, esi
jmp 0x52ec08
mov esi, 1
test eax, eax
je 0x52ec19
cmp eax, 1
je 0x52ec19
mov eax, edx
mov edx, dword [esp + 0x50]
jmp 0x52ec1d
mov eax, dword [esp + 0x50]
mov ecx, dword [ecx + 0x204]
mov edi, dword [ecx + 0x7c]
test edi, edi
je 0x52ec30
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.004e4080
mov ecx, eax
call fcn.004e4350
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x20
Function at 0x5323f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x645d88
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.0061d4df
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.004e3500
mov edx, dword [esp + 0x24]
lea ecx, [esp + 4]
push ecx
push 1
push 0x75b358
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov eax, dword [esp + 8]
add eax, 3
cmp eax, 0x12
jge 0x53136d
mov eax, 0x12
lea ecx, [esp + 0xc]
mov dword [esi + 0x18], eax
call fcn.004e3560
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0061d551
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret
jmp 0x531300
Function at 0x53af60
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 0x53b00e
mov edi, dword [esi + 0x34]
xor eax, eax
mov al, byte [esp + 0x11]
cmp al, 2
jne 0x53b00e
test edi, edi
je 0x53b00e
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x20]
push ebp
lea ecx, [esi + 4]
push ebx
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x53afba
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
call dword [edx + 0x24]
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x53afba
mov eax, dword [edi + 0x2c]
jmp 0x53afdf
mov eax, dword [esi + 0x34]
mov ecx, dword [eax + 0x58]
test ecx, ecx
mov ecx, ebp
jne 0x53afc8
mov ecx, ebx
mov eax, dword [esi + 0x1c]
add eax, ecx
mov ecx, dword [edi + 0x40]
cmp eax, ecx
jl 0x53afdd
mov edx, dword [edi + 0x3c]
add ecx, edx
cmp eax, ecx
jl 0x53afdf
mov eax, ecx
mov esi, dword [esp + 0x10]
push eax
mov ecx, esi
call fcn.0053ae90
mov eax, dword [esp + 0x18]
pop ebp
cmp eax, 0x202
pop ebx
je 0x53b005
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x53b00e
push 0
mov ecx, esi
call fcn.0053ae10
pop edi
pop esi
pop ecx
ret 0xc
Function at 0x53ece0
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.004e4080
lea eax, [esp + 0xc]
push eax
push esi
call fcn.004e50e0
mov eax, dword [esp + 0x14]
add esp, 8
cmp eax, 9
jne 0x53eda8
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov eax, dword [esi + 0xf8]
jl 0x53ed5d
test eax, eax
je 0x53ed21
mov eax, dword [eax + 0x14]
inc eax
jmp 0x53ed23
xor eax, eax
mov edx, dword [esi + 0xd8]
mov ecx, dword [esi + 0x104]
cmp eax, edx
jl 0x53ed4a
mov eax, ecx
sub eax, edx
neg eax
sbb eax, eax
and eax, ecx
mov ecx, esi
push eax
call fcn.0053ec50
pop edi
pop esi
ret 0xc
cmp eax, ecx
jne 0x53ed50
xor eax, eax
push eax
mov ecx, esi
call fcn.0053ec50
pop edi
pop esi
ret 0xc
test eax, eax
je 0x53ed66
mov eax, dword [eax + 0x14]
jmp 0x53ed6c
mov eax, dword [esi + 0xd8]
dec eax
test eax, eax
jge 0x53ed89
mov eax, dword [esi + 0x104]
test eax, eax
je 0x53ed94
dec eax
mov ecx, esi
push eax
call fcn.0053ec50
pop edi
pop esi
ret 0xc
mov ecx, dword [esi + 0x104]
dec ecx
cmp eax, ecx
jne 0x53ed9b
mov eax, dword [esi + 0xd8]
dec eax
push eax
mov ecx, esi
call fcn.0053ec50
pop edi
pop esi
ret 0xc
cmp eax, 0x25
jne 0x53edfd
mov edi, dword [esi + 0xec]
cmp edi, 1
jle 0x53eec1
mov eax, dword [esi + 0xf8]
test eax, eax
je 0x53eec1
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
test ecx, ecx
lea eax, [ecx - 1]
jg 0x53edda
lea eax, [edi - 1]
mov ecx, dword [esi + 0xe8]
lea eax, [ecx + eax*8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
add ecx, edx
cmp ecx, eax
jg 0x53edf0
mov eax, ecx
push eax
mov ecx, esi
call fcn.0053ec50
pop edi
pop esi
ret 0xc
cmp eax, 0x27
jne 0x53ee54
mov edi, dword [esi + 0xec]
cmp edi, 1
jle 0x53eec1
mov eax, dword [esi + 0xf8]
test eax, eax
je 0x53eec1
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
dec edi
cmp ecx, edi
jge 0x53ee2f
lea eax, [ecx + 1]
jmp 0x53ee31
xor eax, eax
mov ecx, dword [esi + 0xe8]
lea eax, [ecx + eax*8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
add ecx, edx
cmp ecx, eax
jg 0x53ee47
mov eax, ecx
push eax
mov ecx, esi
call fcn.0053ec50
pop edi
pop esi
ret 0xc
cmp eax, 0x28
jne 0x53ee88
mov eax, dword [esi + 0xf8]
test eax, eax
je 0x53ee69
mov eax, dword [eax + 0x14]
inc eax
jmp 0x53ee6b
xor eax, eax
mov ecx, dword [esi + 0xd8]
xor edx, edx
cmp eax, ecx
mov ecx, esi
setge dl
dec edx
and edx, eax
push edx
call fcn.0053ec50
pop edi
pop esi
ret 0xc
cmp eax, 0x26
jne 0x53eeb3
mov eax, dword [esi + 0xf8]
test eax, eax
je 0x53ee9f
mov eax, dword [eax + 0x14]
dec eax
test eax, eax
jge 0x53eea6
mov eax, dword [esi + 0xd8]
dec eax
push eax
mov ecx, esi
call fcn.0053ec50
pop edi
pop esi
ret 0xc
cmp eax, 0x10
je 0x53eec1
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x74]
pop edi
pop esi
ret 0xc
Function at 0x5410d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x646390
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, vtable.CRgn.0
push esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov esi, dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0x30], 1
call esi
push eax
lea ecx, [esp + 0x10]
call fcn.0061d6d3
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x44]
push 0xfffffffffffffffc
lea edx, [esp + 0x18]
push 0xfffffffffffffffc
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
call dword [sym.imp.USER32.dll_InflateRect]
lea eax, [esp + 0x38]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
lea eax, [esp + 0x14]
push eax
call esi
push eax
lea ecx, [esp + 8]
call fcn.0061d6d3
push 0
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call fcn.0061d6d3
mov ecx, dword [esp + 8]
lea eax, [esp + 4]
neg eax
mov edx, dword [esp + 0x10]
push 3
sbb eax, eax
and eax, ecx
lea ecx, [esp + 0x10]
neg ecx
sbb ecx, ecx
push eax
and ecx, edx
push ecx
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.GDI32.dll_CombineRgn]
mov esi, vtable.CGdiObject.0
mov dword [esp + 4], esi
lea ecx, [esp + 4]
mov byte [esp + 0x2c], 2
call fcn.0061d72a
mov dword [esp + 0xc], esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 3
call fcn.0061d72a
mov ecx, dword [esp + 0x24]
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x14