joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454830
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4a2788
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0049aa80
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00454190
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0049a9ae
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0049726f
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0049726f
push 1
push 0
push 0
mov ecx, esi
call fcn.00497217
push 1
push 0
push 1
mov ecx, esi
call fcn.00497217
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0049aaf2
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x4549b0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4a27a8
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.0049aa80
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00454190
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0049a9ae
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x454a74
cmp dword [esp + 0x40], 1
jne 0x454a72
cmp ecx, eax
jge 0x454a74
mov eax, ecx
cmp eax, 0xc8
jge 0x454a80
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00454830
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0049aaf2
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x455280
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4a2853
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0049568f
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0049ad28
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0049c244
test eax, eax
je 0x45539c
mov ecx, dword [esp + 0x3c]
call fcn.0049ad55
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x455360
push edi
mov ecx, esi
call fcn.004983ba
mov ecx, esi
call fcn.00455540
cmp dword [esp + 0x38], 1
jne 0x455395
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004984f5
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x457580
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4575b3
push esi
call fcn.00465940
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4575ac
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x457639
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x457622
mov eax, dword [esi + 8]
test eax, eax
je 0x4575d7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x45761e
cmp eax, 2
je 0x457622
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4575ca
cmp eax, 3
je 0x4575fd
cmp eax, 1
jne 0x4575ca
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4575ca
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4575ca
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00457660
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x457648
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00457660
add esp, 4
pop esi
ret

Function at 0x457ee0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x457f01
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x457f01
mov eax, dword [eax + 0x44]
test eax, eax
je 0x457f01
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4731e0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x473283
test eax, eax
jbe 0x473283
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x473283
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x47322e
xor esi, esi
jmp 0x473234
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x47325f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00476c50
add esi, eax
push esi
mov ebx, esi
call fcn.00476c50
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x473240
pop ebp
test edi, edi
pop edi
jne 0x473283
test ebx, ebx
je 0x473283
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00484900
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x4733e5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4734fd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4734fd
mov eax, dword [esi + 0x3c]
push eax
call fcn.00495ae1
mov esi, eax
test esi, esi
je 0x4734fd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4734fd
mov ecx, esi
call fcn.00473370
cmp edi, eax
jge 0x4734fd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x473483
mov dword [esp + 0x34], 1
jmp 0x4734de
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4734fd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004728b0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x4788f0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x47893a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x478969
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x4789ab
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x496485
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4964bd
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00494512
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004944ea
jmp 0x4964c9
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x497b77
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x497bb9
call fcn.0049d634
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x497bb9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x497bb0
xor eax, eax
jmp 0x497bc1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00497bc7
pop edi
pop esi
pop ebx
ret 4

Function at 0x49db64
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x49db92
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49dbb0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049daca
jmp 0x49dbb0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49dbb0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049daca
test edi, edi
mov eax, edi
jne 0x49db9a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401da0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x408488
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetParent]
mov eax, dword [esi + 0x20]
push eax
call edi
push eax
call sub.MFC42.DLL_CWnd::FromHandle
push eax
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CClientDC::CClientDC
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0xc]
push ecx
push edx
mov dword [esp + 0x50], 0
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi + 0x20]
push edx
call edi
push eax
call sub.MFC42.DLL_CWnd::FromHandle
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call sub.MFC42.DLL_CWnd::ScreenToClient
mov eax, dword [esi + 0xf4]
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
jne 0x401ed6
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x2c]
neg eax
sbb eax, eax
and eax, ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0xf0]
call sub.MFC42.DLL_CDC::Attach
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
sub eax, ecx
mov ecx, dword [esp + 0x14]
sub ecx, edi
push eax
push ecx
push edx
lea edi, [esi + 0x100]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call sub.MFC42.DLL_CGdiObject::Attach
test edi, edi
je 0x401e82
mov edi, dword [edi + 4]
mov eax, dword [esi + 0xf4]
push edi
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov dword [esi + 0x108], eax
mov eax, dword [esp + 0xc]
sub ecx, edx
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x30]
sub edx, eax
lea eax, [esp + 0x2c]
push 0xcc0020
neg eax
sbb eax, eax
and eax, edi
mov edi, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x24]
push edi
push eax
push ecx
mov ecx, dword [esi + 0xf4]
push edx
push 0
push 0
push ecx
call ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
sub eax, ecx
mov ecx, dword [esp + 0x14]
lea edx, [esi + 0xf0]
sub ecx, edi
test edx, edx
je 0x401ef7
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x60]
push eax
push ecx
push 0
mov eax, dword [edx + 4]
push 0
push eax
call ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], 0xffffffff
call fcn.00407ed4
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 4
Function at 0x4042e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x104
mov ecx, dword [esp + 0x10c]
mov edx, dword [esp + 0x108]
push ebx
push ebp
push esi
lea eax, [esp + 0x10]
push edi
push eax
push ecx
push edx
call fcn.004042a0
push 0x40
lea eax, [esp + 0x24]
push 0x40c974
push eax
call dword [sym.imp.MSVCRT.dll__fsopen]
add esp, 0x18
mov dword [esp + 0x10], eax
test eax, eax
je 0x4044ab
push eax
call dword [sym.imp.MSVCRT.dll__fileno]
push eax
call dword [sym.imp.MSVCRT.dll__filelength]
mov esi, eax
add esp, 8
shr esi, 5
cmp esi, 1
jl 0x4044ab
mov ebp, esi
shl ebp, 5
push ebp
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, ebp
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x1c]
push edi
call dword [sym.imp.MSVCRT.dll_fseek]
push edi
push 1
push ebp
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
lea ebp, [esi - 1]
add esp, 0x20
mov edi, ebp
test edi, edi
jl 0x4043ac
mov ecx, dword [esp + 0x120]
mov eax, edi
shl eax, 5
add eax, ebx
cmp ecx, dword [eax]
jge 0x4043a8
dec edi
sub eax, 0x20
test edi, edi
jge 0x40439a
jmp 0x4043ac
test edi, edi
jge 0x4043d1
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
mov edx, edi
shl edx, 5
lea eax, [edx + ebx]
mov edx, dword [edx + ebx]
cmp edx, ecx
jne 0x404436
mov ecx, dword [esp + 0x124]
test ecx, ecx
jne 0x40440d
inc edi
mov ecx, edi
shl ecx, 0x1b
sub ecx, edi
add ecx, esi
shl edi, 5
shl ecx, 5
add edi, ebx
push ecx
push edi
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
mov esi, ebp
jmp 0x404468
lea eax, [edi + 1]
mov edx, eax
shl edx, 0x1b
sub edx, eax
add edx, esi
shl eax, 5
shl edx, 5
add eax, ebx
push edx
push eax
push ebx
call dword [sym.imp.MSVCRT.dll_memmove]
or eax, 0xffffffff
add esp, 0xc
sub eax, edi
add esi, eax
jmp 0x404468
mov eax, dword [esp + 0x124]
test eax, eax
je 0x404468
lea eax, [edi + 1]
mov ecx, eax
shl ecx, 0x1b
sub ecx, eax
add ecx, esi
shl eax, 5
shl ecx, 5
add eax, ebx
push ecx
push eax
push ebx
call dword [sym.imp.MSVCRT.dll_memmove]
or edx, 0xffffffff
add esp, 0xc
sub edx, edi
add esi, edx
mov edi, dword [esp + 0x10]
push 0
push 0
push edi
call dword [sym.imp.MSVCRT.dll_fseek]
shl esi, 5
push edi
push 1
push esi
push ebx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x1c
push esi
push edi
call dword [sym.imp.MSVCRT.dll__fileno]
add esp, 4
push eax
call dword [sym.imp.MSVCRT.dll__chsize]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret
Function at 0x446720
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x24]
push esi
push edi
xor esi, esi
xor edi, edi
mov byte [esp + 0x2c], 1
cmp word [eax], si
jne 0x446747
pop edi
pop esi
xor al, al
pop ebx
add esp, 8
ret 0x18
push ebp
push eax
or eax, 0xffffffff
call fcn.004108f0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ebp, eax
mov eax, dword [esp + 0x30]
push ebp
mov byte [ebx], 0
mov byte [eax], 0
mov byte [ecx], 0
mov byte [edx], 0
call fcn.00414cf0
inc eax
push eax
call fcn.00412c3a
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x1c], ecx
mov al, byte [esi + ebp]
cmp al, 0x2b
je 0x446798
cmp al, 0x5e
je 0x446794
cmp al, 0x21
je 0x446794
cmp al, 0x23
jne 0x4467c8
cmp al, 0x2b
jne 0x4467a2
mov eax, dword [esp + 0x24]
mov byte [eax], 1
inc esi
jmp 0x446781
cmp al, 0x5e
jne 0x4467b0
mov edx, dword [esp + 0x28]
mov byte [edx], 1
inc esi
jmp 0x446781
cmp al, 0x21
jne 0x4467be
mov eax, dword [esp + 0x2c]
mov byte [eax], 1
inc esi
jmp 0x446781
cmp al, 0x23
jne 0x4467c5
mov byte [ebx], 1
inc esi
jmp 0x446781
mov al, byte [esi + ebp]
inc esi
mov byte [esp + 0x14], al
mov dword [esp + 0x10], esi
cmp al, 0x7b
jne 0x446879
lea edx, [esp + 0x10]
push edx
push ecx
push ebp
push 0x7d
call fcn.0043934a
test eax, eax
je 0x446800
mov byte [esp + 0x30], 0
jmp 0x4468b5
mov esi, dword [esp + 0x1c]
mov eax, dword [edi*4 + 0x493b10]
push esi
push eax
call fcn.004278b3
add esp, 8
test eax, eax
je 0x44681f
inc edi
cmp edi, 0x62
jl 0x446800
cmp edi, 0x62
jne 0x446861
movzx ecx, byte [esi]
push ecx
call dword [sym.imp.USER32.dll_VkKeyScanA]
mov edx, dword [esp + 0x20]
cwde
mov dword [edx], eax
test eax, 0x200
je 0x446843
mov ecx, dword [esp + 0x28]
mov byte [ecx], 1
test eax, 0x400
je 0x446851
mov edx, dword [esp + 0x2c]
mov byte [edx], 1
test eax, 0x100
je 0x4468b5
mov eax, dword [esp + 0x24]
mov byte [eax], 1
jmp 0x4468b5
cmp byte [edi + 0x493c98], 0
jne 0x4467ee
mov ecx, dword [edi*4 + 0x493d00]
mov edx, dword [esp + 0x20]
mov dword [edx], ecx
jmp 0x4468b5
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
mov ecx, dword [esp + 0x20]
cwde
mov dword [ecx], eax
test eax, 0x200
je 0x446899
mov edx, dword [esp + 0x28]
mov byte [edx], 1
test eax, 0x400
je 0x4468a7
mov ecx, dword [esp + 0x2c]
mov byte [ecx], 1
test eax, 0x100
je 0x4468b5
mov edx, dword [esp + 0x24]
mov byte [edx], 1
mov eax, dword [esp + 0x20]
and dword [eax], 0xff
push ebp
call fcn.0041294d
mov eax, dword [esp + 0x20]
push eax
call fcn.0041294d
mov al, byte [esp + 0x38]
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 0x18
Function at 0x10001920
Capabilities:
Create thread
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x1001db28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov al, byte [esp + 3]
push ebx
push ebp
push esi
push edi
mov byte [esp + 0x18], al
mov edi, 0x10055ad8
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x1c]
push ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.10001e50
test al, al
je 0x10001996
mov edi, dword [esp + 0x1c]
mov ecx, ebp
mov edx, ecx
mov esi, 0x10055ad8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call fcn.10001e30
push 1
lea eax, [esp + 0x1c]
push ebx
push eax
mov dword [esp + 0x3c], ebx
call fcn.1000fb50
mov edi, dword [esp + 0x28]
add esp, 0xc
cmp edi, ebx
jne 0x100019b7
mov edi, 0x1001f2c0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov esi, edi
mov edx, ecx
mov edi, 0x100559d0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x17]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 7
mov ecx, 0x100581a8
mov byte [esp + 0x1f], bl
call fcn.1000deb0
mov al, byte [esp + 0x13]
cmp al, 1
jne 0x10001a35
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x10001b04
mov al, byte [ecx - 1]
cmp al, bl
je 0x10001afa
cmp al, 0xff
je 0x10001afa
pop edi
dec al
pop esi
pop ebp
mov byte [ecx - 1], al
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
cmp al, 2
jne 0x10001a43
mov dword [0x10055ad4], 1
push 0x104
push 0x100558cc
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.PSAPI.DLL_GetModuleBaseNameA
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push 1
push ebx
call esi
push ebx
push ebx
push ebx
push ebx
mov dword [0x100558c4], eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [esp + 0x14]
push ecx
push ebx
push ebx
push 0x10001030
push ebx
push ebx
mov dword [0x100558c8], eax
mov dword [esp + 0x2c], ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test eax, eax
jne 0x10001aa2
push str.CreateThread_error
call edi
cmp dword [0x10055ad4], ebx
jne 0x10001acf
call fcn.1000db00
cmp eax, 1
jne 0x10001acf
lea edx, [esp + 0x14]
push edx
push ebx
push ebx
push 0x10001220
push ebx
push ebx
call esi
test eax, eax
jne 0x10001acf
push str.CreateThread_error
call edi
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x10001b04
mov al, byte [ecx - 1]
cmp al, bl
je 0x10001afa
cmp al, 0xff
je 0x10001afa
pop edi
dec al
pop esi
pop ebp
mov byte [ecx - 1], al
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
dec ecx
push ecx
call fcn.10011d80
add esp, 4
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret