joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e08c
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4a96d2
call fcn.004a7a94
push ecx
push ecx
and dword [ebp - 0x14], 0
push edi
lea edi, [ebp - 0x14]
call fcn.00466700
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
jne 0x40e0ca
push 0x4b94e4
push ebx
call fcn.00405e62
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405bf2
jmp 0x40e135
add eax, 0xfffffff0
call fcn.00405c0a
add eax, 0x10
mov dword [ebp - 0x10], eax
push str.datadpiconfig.ini
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 1
call fcn.0040648c
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e10f
lea eax, [ebp - 0x14]
lea edi, [ebp - 0x10]
call fcn.00405209
push str._ressrcchsdpisetting.ini
mov eax, edi
push eax
call fcn.0040648c
push esi
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
mov eax, esi
call fcn.00405c0a
add eax, 0x10
mov dword [ebx], eax
mov eax, esi
call fcn.00405bf2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405bf2
pop esi
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
mov dword fs:[0], ecx
leave
ret

Function at 0x40e144
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, esi
call fcn.0040dfd8
test eax, eax
jne 0x40e158
push 0x60
pop eax
leave
ret
cmp dword [esi + 8], 0xffffffff
jne 0x40e18a
push ebx
lea ebx, [ebp - 4]
call fcn.0040e08c
push dword [eax]
push 0x60
push str.debugdpi
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi + 8], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00405bf2
pop ebx
mov eax, dword [esi + 8]
leave
ret

Function at 0x40e18f
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi + 4], 0xffffffff
jne 0x40e1c5
push ebx
lea ebx, [ebp - 4]
call fcn.0040e08c
push dword [eax]
push 0
push str.debug
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00405bf2
pop ebx
mov eax, dword [esi + 4]
leave
ret

Function at 0x40e1ca
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4acafd
call fcn.004a7a94
push ecx
and dword [ebp - 0x10], 0
push esi
mov esi, ecx
add esi, 0x14
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x40e23c
push ebx
lea ebx, [ebp - 0x10]
call fcn.0040e08c
and dword [ebp - 4], 0
push dword [eax]
mov eax, 0x104
push eax
push eax
call fcn.00405d23
push eax
push str.kxetray
push str.supportprocess
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405bf2
mov eax, dword [esi]
test eax, eax
pop ebx
je 0x40e235
push eax
call fcn.0047a638
pop ecx
mov edx, esi
call fcn.00405cea
mov eax, dword [esi]
sub eax, 0x10
call fcn.00405c0a
mov ecx, dword [ebp - 0xc]
add eax, 0x10
mov dword [edi], eax
mov eax, edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x40e3c6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, word [ebp + 0xc]
push esi
push dword [ebp + 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40e449
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x40e412
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x40e412
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [ebp + 0xc], eax
jne 0x40e416
xor eax, eax
jmp 0x40e448
mov esi, dword [ebp + 0x10]
push edi
lea edi, [ebx + 1]
push edi
call fcn.00408444
test eax, eax
je 0x40e434
push ebx
push dword [ebp + 0xc]
push eax
call fcn.0047aab0
add esp, 0xc
mov eax, edi
call fcn.00409929
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
inc eax
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40e579
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x4a962a
call fcn.004a7a94
push ecx
push ecx
mov eax, dword [0x4daedc]
push ebx
push esi
push edi
mov edi, ecx
mov esi, 0x4daedc
xor ebx, ebx
mov ecx, esi
mov dword [ebp - 0x14], ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x14], ebx
lea eax, [edi + 0xc]
jne 0x40e5b1
mov eax, edi
lea edi, [ebp - 0x10]
call fcn.00405209
mov edi, dword [ebp - 0x10]
cmp dword [edi - 0xc], ebx
je 0x40e6a7
mov eax, dword [0x4daedc]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x14], eax
push dword [ebp + 0x10]
mov byte [ebp - 4], 1
push dword [ebp + 8]
lea eax, [ebp + 0x14]
push edi
push str._s_d._s
call fcn.00406942
add esp, 0x10
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
je 0x40e69c
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
je 0x40e693
mov esi, dword [ebp + 0xc]
push ebx
lea eax, [ebp + 8]
push eax
push edi
lea eax, [edi + 0xa]
push eax
mov dword [ebp + 8], ebx
call fcn.00408444
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x40e68a
cmp dword [ebp + 8], edi
jne 0x40e68a
mov eax, edi
call fcn.00409929
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
call fcn.00405bf2
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405bf2
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
xor eax, eax
mov edx, esi
call fcn.0040846a
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
call fcn.00405bf2
mov esi, dword [ebp - 0x14]
jmp 0x40e66c
Function at 0x40e9df
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4a9e02
call fcn.004a7a94
sub esp, 0x20
push ebx
push esi
push edi
mov esi, ecx
call fcn.0040e9b1
push dword [esi]
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.0040eb19
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], edi
je 0x40eb02
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40eaff
lea eax, [ebp - 0x24]
mov ebx, vtable.Gdiplus::PrivateFontCollection.0
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], edi
call sub.gdiplus.dll_GdipNewPrivateFontCollection
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
push dword [ebp - 0x24]
call sub.gdiplus.dll_GdipPrivateAddFontFile
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call sub.gdiplus.dll_GdipGetFontCollectionFamilyCount
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
cmp eax, edi
jle 0x40eaec
xor ecx, ecx
push 8
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call sub.gdiplus.dll_GdipAlloc
mov dword [ebp - 0x1c], eax
test eax, eax
mov byte [ebp - 4], 2
je 0x40eab5
mov ecx, dword [ebp - 0x14]
push 0x40d818
push 0x40d80e
push ecx
lea edi, [eax + 4]
push 8
push edi
mov dword [eax], ecx
call fcn.0047de61
mov eax, edi
jmp 0x40eab7
xor eax, eax
test eax, eax
mov byte [ebp - 4], 1
mov dword [esi + 4], eax
je 0x40eaec
push eax
push dword [ebp - 0x14]
lea edi, [ebp - 0x18]
lea eax, [ebp - 0x28]
call fcn.0040d73e
test eax, eax
jne 0x40eae7
mov eax, dword [ebp - 0x18]
test eax, eax
jle 0x40eae7
mov ecx, dword [ebp - 0x14]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
jmp 0x40eaec
call fcn.0040e9b1
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x28], ebx
call sub.gdiplus.dll_GdipDeletePrivateFontCollection
mov dword [ebp - 0x28], vtable.Gdiplus::FontCollection.0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405bf2
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x40ec27
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
xor eax, eax
push 0x20e
push eax
mov dword [ebp - 4], eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.00479900
add esp, 0xc
push 0x104
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 8]
call fcn.00405e62
mov eax, dword [ebp + 8]
leave
ret 4
Function at 0x410a5a
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x4a8dc2
call fcn.004a7a94
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
lea esi, [edi + 8]
mov dword [edi], vtable.BkWin::BkLayoutParam.0
mov dword [edi + 4], eax
call fcn.004078bb
mov byte [ebp - 4], 1
or dword [edi + 0x1c], 0xffffffff
or dword [edi + 0x20], 0xffffffff
mov eax, SysReAllocString
push str.layout_
push esi
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x28], eax
mov dword [edi + 0x30], eax
call fcn.004078da
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x4111b7
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
mov eax, 0x4a9da3
call fcn.004a7a94
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [edi + 4], vtable.BkWin::IBkWindow.0
mov dword [edi], vtable.CBkWindow.0
mov dword [edi + 4], vtable.CBkWindow.1.0
call fcn.0041118f
push 0x4db3a0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.0041118f
add eax, 0x60
inc dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
call fcn.0041118f
mov ebx, eax
mov eax, dword [ebp - 0x10]
call fcn.0046e037
push 0x4db3a0
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x10]
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], esi
mov dword [edi + 8], eax
mov dword [edi + 0x18], esi
mov dword [edi + 0x1c], esi
mov dword [edi + 0x20], esi
mov dword [edi + 0x24], esi
mov dword [edi + 0x28], esi
lea esi, [edi + 0x2c]
mov ecx, 0x4daedc
call fcn.00405ea5
mov byte [ebp - 4], 1
xor ebx, ebx
lea esi, [edi + 0x44]
mov ecx, 0x4daedc
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], ebx
mov dword [edi + 0x40], ebx
call fcn.00405ea5
mov byte [ebp - 4], 2
lea esi, [edi + 0x4c]
mov ecx, 0x4daedc
mov dword [edi + 0x48], ebx
call fcn.00405ea5
lea esi, [edi + 0x50]
call fcn.004078bb
mov byte [ebp - 4], 4
or dword [edi + 0x54], 0xffffffff
or dword [edi + 0x58], 0xffffffff
or dword [edi + 0x68], 0xffffffff
lea eax, [edi + 4]
xor esi, esi
push eax
mov dword [edi + 0x5c], ebx
mov word [edi + 0x60], bx
mov dword [edi + 0x64], ebx
mov dword [edi + 0x6c], ebx
mov dword [edi + 0x70], ebx
inc esi
lea eax, [edi + 0xc4]
mov dword [edi + 0xa4], ebx
mov dword [edi + 0xa8], ebx
mov dword [edi + 0xac], ebx
mov dword [edi + 0xb0], esi
mov dword [edi + 0xb4], ebx
mov dword [edi + 0xb8], ebx
mov dword [edi + 0xbc], ebx
push eax
call fcn.00410a5a
lea eax, [edi + 0x18]
push eax
mov dword [edi + 0x100], ebx
mov dword [edi + 0x104], ebx
mov dword [edi + 0xc0], esi
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x41d4b7
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get kernel32 base address

Disassembly:
mov eax, 0x4a8d6a
call fcn.004a7a94
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], eax
mov dword [ebp - 4], edi
mov dword [esi + 0x24], vtable.BkWin::CBkWndMsgFunction_class_CShadowWnd_.0
call fcn.004524a3
mov dword [esi + 0x38], eax
lea eax, [esi + 0x44]
push eax
mov dword [esi + 0x3c], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x40], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], 0x989681
mov dword [esi], vtable.CShadowWnd.0
mov dword [esi + 0x24], vtable.CShadowWnd.1.0
mov dword [esi + 0x60], edi
mov dword [esi + 0x6c], edi
lea eax, [esi + 0x70]
mov dword [esi + 0x68], 4
mov dword [eax + 4], edi
mov dword [eax + 0x10], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax], vtable.CBkBitmap.0
mov dword [esi + 0x84], 1
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x424add
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, eax
mov eax, dword [ebp + 0xc]
sub edi, dword [esi + 0x1c]
sub eax, dword [esi + 0x18]
mov edx, dword [esi]
push 1
xor ebx, ebx
push edi
push eax
mov ecx, esi
mov dword [ebp + 0xc], eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [edx + 0x74]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x144]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x424c16
push eax
call fcn.00410ff5
mov ebx, eax
test ebx, ebx
pop ecx
je 0x424be3
mov eax, dword [ebx + 0x14]
push 2
mov dword [ebp - 0xc], eax
mov eax, dword [ebx]
push 0
mov ecx, ebx
call dword [eax + 0x28]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x34]
test eax, eax
je 0x424b57
lea eax, [ebx + 0x18]
push eax
call fcn.00411a63
movzx eax, word [ebp + 0xc]
movzx edi, di
shl edi, 0x10
or edi, eax
push edi
push dword [ebp + 8]
mov ecx, ebx
push 0x202
call fcn.004114e1
mov eax, dword [ebp - 0x10]
cmp dword [esi + 0x144], eax
jne 0x424bad
mov ecx, dword [ebx + 0x44]
xor eax, eax
cmp ecx, eax
je 0x424b9f
cmp word [ecx], ax
je 0x424b9f
push 1
push eax
push eax
push ecx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x424be3
cmp dword [ebx + 0x14], eax
je 0x424be3
mov dword [ebp - 4], 1
jmp 0x424be3
mov eax, dword [ebx]
push 1
push 0
mov ecx, ebx
call dword [eax + 0x28]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x34]
test eax, eax
je 0x424bcc
lea eax, [ebx + 0x18]
push eax
call fcn.00411a63
push edi
push dword [ebp + 8]
mov ecx, ebx
push 0x2a3
call fcn.004114e1
mov dword [ebp - 8], 1
xor ecx, ecx
cmp dword [ebp - 4], ecx
mov dword [esi + 0x144], ecx
je 0x424bf4
push 0x67
jmp 0x424c0f
cmp dword [ebp - 8], ecx
je 0x424c16
cmp dword [ebp - 0xc], ecx
je 0x424c16
mov edx, dword [ebp - 0x14]
lea eax, [esi + 0x140]
cmp edx, dword [eax]
jne 0x424c0d
mov dword [eax], ecx
push 0x6a
mov edi, ebx
call fcn.0042470a
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x426d9e
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x4a99db
call fcn.004a7a94
sub esp, 0x10
push dword [ebp + 8]
lea eax, [ebp + 8]
push eax
call fcn.00405e62
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
movzx eax, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x14]
push eax
push str.__02d__02d__02d__03d__n
lea ecx, [ebp + 8]
call fcn.0040cc70
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00405bf2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4
Function at 0x428926
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x11c
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0xa4]
push edi
push eax
call fcn.00479900
add esp, 0xc
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
cmp eax, edi
jne 0x42897f
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x114
call esi
cmp eax, edi
je 0x428a2d
mov eax, dword [ebp - 0x94]
dec eax
je 0x428a19
dec eax
jne 0x428a2d
cmp dword [ebp - 0xa0], 6
jne 0x4289ca
inc eax
cmp dword [ebp - 0x9c], eax
jne 0x4289b2
xor ecx, ecx
cmp byte [ebp + 0x76], al
setne cl
add ecx, 8
jmp 0x4289c6
cmp dword [ebp - 0x9c], edi
jne 0x428a06
xor ecx, ecx
cmp byte [ebp + 0x76], al
setne cl
lea ecx, [ecx + ecx + 7]
mov edi, ecx
jmp 0x428a2d
cmp dword [ebp - 0xa0], 5
jne 0x4289f9
cmp dword [ebp - 0x9c], 2
jne 0x4289e0
push 5
jmp 0x428a16
cmp dword [ebp - 0x9c], 1
jne 0x4289ed
push 6
jmp 0x428a16
cmp dword [ebp - 0x9c], edi
jne 0x428a2d
push 3
jmp 0x428a16
cmp dword [ebp - 0xa0], 4
ja 0x428a2d
push 4
jmp 0x428a16
cmp dword [ebp - 0x9c], 2
jne 0x428a2d
cmp byte [ebp + 0x76], al
jne 0x428a2d
push 0xa
pop edi
jmp 0x428a2d
mov eax, dword [ebp - 0x98]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb edi, edi
inc edi
inc edi
mov eax, edi
pop edi
pop esi
add ebp, 0x78
leave
ret
Function at 0x42f02b
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov ebx, eax
mov eax, dword [0x4db3e0]
xor esi, esi
cmp eax, esi
push edi
mov dword [esp + 0x18], esi
je 0x42f048
mov edi, dword [eax + 4]
jmp 0x42f04a
xor edi, edi
cmp edi, esi
jne 0x42f05a
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov edi, eax
cmp edi, esi
je 0x42f07f
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp edi, eax
je 0x42f07f
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x42f07f
push esi
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x18], 1
push dword [esp + 0x24]
mov dword [ebx + 0x438], esi
push edi
push ebx
call fcn.0042fc50
mov ecx, eax
cmp ecx, esi
mov dword [esp + 0x14], ecx
jne 0x42f0aa
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x42f1d0
mov eax, dword [0x4db3e0]
cmp eax, esi
mov dword [esp + 0x1c], esi
je 0x42f0c1
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov dword [eax + 4], ecx
cmp dword [esp + 0x24], esi
jne 0x42f0ce
mov eax, edi
call fcn.0042fe32
cmp dword [ebx + 0x428], esi
je 0x42f16c
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push esi
push esi
push 0x2001
mov dword [esp + 0x34], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
cmp ebp, dword [esp + 0x24]
je 0x42f115
push 1
push ebp
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x43
push esi
push esi
push esi
push esi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp ebp, dword [esp + 0x24]
je 0x42f14d
push esi
push ebp
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 0xffffffffffffffec
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x80000
je 0x42f16c
push esi
push esi
push 0xf
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x2c]
push 0x97
push esi
push esi
push esi
push esi
push esi
push dword [ebx + 4]
mov dword [ebx + 0x438], esi
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [esp + 0x18], esi
je 0x42f1b1
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp edi, esi
je 0x42f1b1
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebx + 4]
jne 0x42f1b1
push edi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [0x4db3e0]
cmp eax, esi
je 0x42f1c1
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebx + 0x43c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x431ceb
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x28]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov edi, eax
test edi, edi
jne 0x431d37
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x150]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov edi, eax
test edi, edi
jne 0x431d37
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x278]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov edi, eax
cmp dword [esi + 0x3bc], 0
je 0x431daf
lea ebx, [esi + 0x3cc]
cmp dword [ebx], 0
je 0x431d54
call dword [sym.imp.USER32.dll_ReleaseCapture]
and dword [ebx], 0
cmp dword [esi + 0x3bc], edi
jne 0x431da8
push edi
call fcn.00410ff5
mov edi, eax
movzx eax, word [ebp + 0x10]
pop ecx
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
mov ecx, edi
push 0x205
call fcn.004114e1
mov eax, dword [esi + 4]
or dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xd
mov dword [ebp - 0x14], eax
mov ecx, dword [edi + 0x14]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0x14]
push ecx
push 0xffffffffffffffff
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
and dword [esi + 0x3bc], 0
pop edi
pop ebx
leave
ret 0xc