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

Disassembly:
push 0xffffffffffffffff
push 0x4cdd88
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.004c46af
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0048cac0
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.004c45dd
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.004c0dc7
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.004c0dc7
push 1
push 0
push 0
mov ecx, esi
call fcn.004c0d6f
push 1
push 0
push 1
mov ecx, esi
call fcn.004c0d6f
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004c4721
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x48d2a0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4cdda8
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.004c46af
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0048cac0
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.004c45dd
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 0x48d364
cmp dword [esp + 0x40], 1
jne 0x48d362
cmp ecx, eax
jge 0x48d364
mov eax, ecx
cmp eax, 0xc8
jge 0x48d370
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0048d120
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.004c4721
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x48dae0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4cde13
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.004bf1e7
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.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.004c4957
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004c5fa9
test eax, eax
je 0x48dbfc
mov ecx, dword [esp + 0x3c]
call fcn.004c4984
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 0x48dbc0
push edi
mov ecx, esi
call fcn.004c1f46
mov ecx, esi
call fcn.0048dd60
cmp dword [esp + 0x38], 1
jne 0x48dbf5
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.004c20b0
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 0x490620
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x490653
push esi
call fcn.00493720
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x49064c
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 0x4906d9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4906c2
mov eax, dword [esi + 8]
test eax, eax
je 0x490677
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 0x4906be
cmp eax, 2
je 0x4906c2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x49066a
cmp eax, 3
je 0x49069d
cmp eax, 1
jne 0x49066a
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 0x49066a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x49066a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00490700
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4906e8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00490700
add esp, 4
pop esi
ret

Function at 0x49d1a0
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 0x49d243
test eax, eax
jbe 0x49d243
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x49d243
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 0x49d1ee
xor esi, esi
jmp 0x49d1f4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x49d21f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0049ed50
add esi, eax
push esi
mov ebx, esi
call fcn.0049ed50
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x49d200
pop ebp
test edi, edi
pop edi
jne 0x49d243
test ebx, ebx
je 0x49d243
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004ae500
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x49d385
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 0x49d49d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x49d49d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004bf639
mov esi, eax
test esi, esi
je 0x49d49d
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 0x49d49d
mov ecx, esi
call fcn.0049d2f0
cmp edi, eax
jge 0x49d49d
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 0x49d423
mov dword [esp + 0x34], 1
jmp 0x49d47e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x49d49d
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.0049bb70
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 0x4a1f60
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 0x4a1faa
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x4a1fd9
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 0x4a201b
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 0x4bffdd
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4c0015
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.004be067
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004be03f
jmp 0x4c0021
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4c16cf
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 0x4c1711
call fcn.004c74b1
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4c1711
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4c1708
xor eax, eax
jmp 0x4c1719
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c171f
pop edi
pop esi
pop ebx
ret 4

Function at 0x4c79e1
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 0x4c7a0f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c7a2d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004c7947
jmp 0x4c7a2d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4c7a2d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004c7947
test edi, edi
mov eax, edi
jne 0x4c7a17
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x460850
push 0x65
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x401082
push ebx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401077
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push 0
push 2
push 0
push 2
push 0x40000000
push 0x468e68
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
mov esi, eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4014b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45129b
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x465a50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xfffffffffffffff0
mov ecx, esi
call fcn.00404d1f
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
and eax, 0xff3fffff
or eax, 0x6000000
push eax
push 0xfffffffffffffff0
mov ecx, esi
call fcn.00404d1f
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov eax, dword [esi + 4]
lea edi, [esi + 0x2a0]
push eax
mov ecx, edi
call fcn.00405594
lea ecx, [ebp - 0xc0]
call fcn.00408863
push 0
push edi
push 0
push 0
push ecx
mov eax, esp
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xc4], esp
mov dword [eax], 0x4608fc
call fcn.00409202
mov ebx, eax
test ebx, ebx
jne 0x401572
push str.pRoot___Failed_to_parse_XML_
push eax
push 0x104
push str.FirstUI.cpp
push 2
call fcn.0042e6a0
add esp, 0x14
cmp eax, 1
jne 0x401572
int3
push ebx
mov ecx, edi
call fcn.004086e7
lea eax, [esi + 0x10]
push eax
mov ecx, edi
call fcn.00405c0e
lea ecx, [esi + 0x38]
push ecx
push 0
push esi
push 0x401cc0
push 0
push 0
call fcn.0042ed40
lea edx, [esi + 0x3c]
push edx
push 0
push esi
push 0x401e40
push 0
push 0
mov dword [esi + 0x1c], eax
call fcn.0042ed40
mov dword [esi + 0x20], eax
lea eax, [esi + 0x40]
push eax
push 0
push esi
push 0x402190
push 0
push 0
call fcn.0042ed40
add esp, 0x48
lea ecx, [esi + 0x44]
push ecx
push 0
push esi
push 0x4024c0
push 0
push 0
mov dword [esi + 0x24], eax
call fcn.0042ed40
lea edx, [esi + 0x48]
push edx
push 0
push esi
push 0x402520
push 0
push 0
mov dword [esi + 0x28], eax
call fcn.0042ed40
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x4c]
push eax
push 0
push esi
push 0x401fd0
push 0
push 0
call fcn.0042ed40
add esp, 0x48
lea ecx, [esi + 0x50]
push ecx
push 0
push esi
push 0x402550
push 0
push 0
mov dword [esi + 0x30], eax
call fcn.0042ed40
add esp, 0x18
mov ecx, esi
mov dword [esi + 0x34], eax
call fcn.00401340
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0xffffffff
call fcn.0040a02f
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042e690
mov esp, ebp
pop ebp
ret
Function at 0x401a90
Capabilities:
Accept command line arguments
Get common file path
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x465a50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
lea ecx, [ebp - 0x218]
push ecx
mov dword [ebp - 0x208], eax
call fcn.00402560
lea ecx, [ebp - 0x218]
call fcn.00402650
push 0x100
lea edx, [ebp - 0x104]
push 0
push edx
mov esi, eax
call fcn.00431350
push 0xa
lea eax, [ebp - 0x104]
push eax
push esi
call fcn.0044ff57
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401af1
push 0x401a40
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x469068
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x100
push 0x468f68
push 0x469068
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
xor eax, eax
lea ebx, [ebx]
mov cl, byte [eax + 0x468f68]
mov byte [eax + 0x468e68], cl
inc eax
test cl, cl
jne 0x401b30
mov eax, 0x468e68
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401b47
mov ecx, dword [0x460848]
mov edx, dword [0x46084c]
push ebx
mov dword [eax], ecx
push edi
mov dword [eax + 4], edx
call fcn.00401000
push 0
push 0
push 3
push 0
push 3
push 0x10000000
push 0x468e68
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401b8a
xor edi, edi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [ebx + 1]
push eax
call fcn.0042eff0
add esp, 4
push 0
lea ecx, [ebp - 0x210]
push ecx
mov esi, eax
push ebx
push esi
push edi
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
test ebx, ebx
je 0x401bde
mov dl, 0x4d
mov cl, 0x50
cmp byte [eax + esi], 0x5a
jne 0x401bd9
cmp byte [eax + esi - 1], dl
jne 0x401bd9
mov byte [eax + esi - 1], cl
mov byte [eax + esi], 0x4b
inc eax
cmp eax, ebx
jb 0x401bc5
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0x20c]
push edx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x208]
push eax
call fcn.004055e6
push 0x468f68
call fcn.004055f3
push 0
push 0x460858
call fcn.00405635
push 0x484
call fcn.0042eb80
add esp, 0x14
mov esi, eax
pop edi
pop ebx
test esi, esi
je 0x401ca9
mov ecx, esi
call fcn.00404d05
mov dword [esi + 0x10], vtable.DuiLib::INotifyUI.0
lea ecx, [esi + 0x2a0]
mov dword [esi], vtable.CFrameWindowWnd.0
mov dword [esi + 0x10], vtable.CFrameWindowWnd.1.0
call fcn.004063fd
push 0
push Ordinal_4
push Ordinal_4
push Ordinal_4
push Ordinal_4
push 0
push 0x96c80000
push str.CreakMe
push 0
mov ecx, esi
call fcn.004054a2
mov ecx, esi
call fcn.00404d90
push 1
push 1
mov ecx, esi
call fcn.00404d55
call fcn.0040880f
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0042e690
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40553c
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
xor edi, edi
call esi
test ax, ax
jns 0x405552
push 8
pop edi
push 2
call esi
test ax, ax
jns 0x40555e
or edi, 1
push 1
call esi
test ax, ax
jns 0x40556a
or edi, 2
push 0x10
call esi
test ax, ax
jns 0x405576
or edi, 4
push 0x12
call esi
test ax, ax
jns 0x405582
or edi, 0x20
mov eax, edi
pop edi
pop esi
ret

Function at 0x406e24
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esi]
mov ebx, dword [ebp + 8]
cmp eax, ecx
je 0x406e49
cmp ebx, dword [esi + 0x50]
je 0x406e49
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x50]
cmp ebx, eax
je 0x406f0b
push edi
test eax, eax
je 0x406e9c
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x50]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x100]
xor edi, edi
push edi
push edi
push edi
push str.killfocus
push dword [esi + 0x50]
mov ecx, esi
call fcn.004067f3
mov dword [esi + 0x50], edi
test ebx, ebx
je 0x406f0a
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
cmp eax, esi
jne 0x406f0a
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc0]
test al, al
je 0x406f0a
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xcc]
test al, al
je 0x406f0a
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [esi + 0x50], ebx
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x50]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x100]
xor eax, eax
push eax
push eax
push eax
push str.setfocus
push dword [esi + 0x50]
mov ecx, esi
call fcn.004067f3
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40710b
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0xcc]
xor ebx, ebx
call fcn.00404d1f
test eax, eax
jle 0x407160
push ebx
lea ecx, [esi + 0xcc]
mov byte [ebp - 1], 0
call fcn.004049f2
mov edx, dword [eax]
lea ecx, [ebp - 1]
push ecx
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [edx]
cmp byte [ebp - 1], 0
jne 0x4071be
lea ecx, [esi + 0xcc]
inc ebx
call fcn.00404d1f
cmp ebx, eax
jl 0x407127
mov eax, dword [ebp + 8]
sub eax, 0x100
je 0x407215
sub eax, 4
je 0x4071c2
dec eax
dec eax
jne 0x40720c
push dword [ebp + 0xc]
mov byte [ebp + 8], al
lea edi, [ebp + 9]
stosb byte es:[edi], al
call fcn.00436d80
pop ecx
mov ecx, dword [esi + 0x4c]
push 0x8000000a
lea edx, [ebp + 8]
push edx
mov byte [ebp + 8], al
mov eax, dword [ecx]
push 0x40637c
call dword [eax + 0xf4]
mov esi, eax
test esi, esi
je 0x40720c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xe8]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov al, 1
jmp 0x40720e
cmp dword [esi + 0x50], 0
je 0x40720c
xor eax, eax
push 7
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov al, byte [ebp + 0xc]
mov byte [ebp - 0x10], al
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x64]
mov dword [ebp - 0x24], 6
mov dword [ebp - 0x14], eax
call fcn.0040553c
mov word [ebp - 0xe], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x50]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x100]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x40720c
cmp dword [esi + 0x50], 0
je 0x407264
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
call dword [eax + 0xc0]
test al, al
je 0x407264
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
call dword [eax + 0xcc]
test al, al
je 0x407264
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
call dword [eax + 0xc]
push str.RichEditUI
push eax
call fcn.00435a40
pop ecx
pop ecx
test eax, eax
je 0x407264
mov ecx, dword [esi + 0x50]
call fcn.00415571
test al, al
jne 0x40720c
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setns al
movzx eax, al
push eax
mov ecx, esi
call fcn.00406fbc
jmp 0x4071be