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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov word [ebp - 2], ax
mov al, byte [0x44d5f8]
mov byte [ebp - 3], al
test byte [ebp - 2], 4
je 0x44d5ba
or byte [ebp - 3], 1
test byte [ebp - 2], 8
je 0x44d5c4
or byte [ebp - 3], 4
test byte [ebp - 2], 1
je 0x44d5ce
or byte [ebp - 3], 8
test byte [ebp - 2], 2
je 0x44d5d8
or byte [ebp - 3], 0x10
test byte [ebp - 2], 0x10
je 0x44d5e2
or byte [ebp - 3], 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44d5f2
or byte [ebp - 3], 2
mov al, byte [ebp - 3]
pop ecx
pop ebp
ret

Function at 0x44d5fc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov al, byte [0x44d640]
mov byte [ebp - 5], al
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44d61d
or byte [ebp - 5], 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44d62d
or byte [ebp - 5], 4
test byte [ebp - 1], 0x20
je 0x44d637
or byte [ebp - 5], 2
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret
Function at 0x4555b0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
test dl, dl
je 0x4555c2
add esp, 0xfffffff0
call fcn.0040378c
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0041b954
mov eax, dword [0x45bdf4]
mov edx, dword [ebp - 4]
mov dword [eax + 4], edx
mov dword [eax], 0x455b20
mov eax, dword [0x45be00]
mov edx, dword [ebp - 4]
mov dword [eax + 4], edx
mov dword [eax], 0x455b40
mov eax, dword [ebp - 4]
call fcn.00455b60
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov dl, 1
mov eax, dword [0x412714]
call fcn.0040343c
mov edx, dword [ebp - 4]
mov dword [edx + 0x4c], eax
mov dl, 1
mov eax, dword [0x412714]
call fcn.0040343c
mov edx, dword [ebp - 4]
mov dword [edx + 0x50], eax
mov dl, 1
mov eax, dword [0x412714]
call fcn.0040343c
mov edx, dword [ebp - 4]
mov dword [edx + 0x54], eax
mov dl, 1
mov eax, dword [0x412714]
call fcn.0040343c
mov edx, dword [ebp - 4]
mov dword [edx + 0x58], eax
mov dl, 1
mov eax, dword [0x412714]
call fcn.0040343c
mov edx, dword [ebp - 4]
mov dword [edx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov dword [ebp - 0x10], eax
push 0x5a
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_GetDeviceCaps
mov edx, dword [ebp - 4]
mov dword [edx + 0x40], eax
mov eax, dword [ebp - 0x10]
push eax
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
push eax
mov eax, 0x450f70
push eax
push 0
push 0
mov eax, dword [0x45bf40]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41db2c]
call fcn.0041f124
mov edx, dword [ebp - 4]
mov dword [edx + 0x84], eax
mov dl, 1
mov eax, dword [0x41db2c]
call fcn.0041f124
mov edx, dword [ebp - 4]
mov dword [edx + 0x88], eax
mov dl, 1
mov eax, dword [0x41db2c]
call fcn.0041f124
mov edx, dword [ebp - 4]
mov dword [edx + 0x80], eax
mov eax, dword [ebp - 4]
call fcn.004560ac
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x455ef8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x455ef8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x455ef8
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x45574a
call fcn.004037e4
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x455cb0
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd98
push ebx
xor edx, edx
mov dword [ebp - 0x268], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x455e7b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x455e59
mov dl, 1
mov eax, dword [0x412b30]
call fcn.0040343c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004041e0
lea eax, [ebp - 0x11c]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x455e42
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x11c]
call fcn.004401f8
test al, al
je 0x455e36
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x11c]
mov dword [ebp - 0x264], eax
mov byte [ebp - 0x260], 0
lea ecx, [ebp - 0x264]
mov edx, 0x455e8c
lea eax, [ebp - 0x25c]
call fcn.00409064
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x455e36
xor eax, eax
push ebp
push 0x455e2f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x14], pe_nt_image_headers32
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x455ec4
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x455e18
lea eax, [ebp - 0x268]
lea edx, [ebp - 0x21c]
mov ecx, pe_nt_image_headers32
call fcn.00404450
mov edx, dword [ebp - 0x268]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + eax*4 - 0x11c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x11c]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x455e18
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x21c]
mov ecx, pe_nt_image_headers32
call fcn.00404450
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455e36
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
inc dword [ebp - 0x10]
dec dword [ebp - 0x1c]
jne 0x455d25
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov dl, 1
call fcn.0041724c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455e82
lea eax, [ebp - 0x268]
call fcn.004041e0
ret
Function at 0x4569b4
Capabilities:
Create thread
Set global application hook

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x45dbb0]
cmp byte [eax + 0xa5], 0
jne 0x456a2b
cmp dword [0x45dbc8], 0
jne 0x4569e9
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x456970
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45dbc8], eax
cmp dword [0x45dbc4], 0
jne 0x456a04
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45dbc4], eax
cmp dword [0x45dbcc], 0
jne 0x456a2b
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x456910
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x45dbcc], eax
pop ecx
pop ebp
ret

Function at 0x456af4
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
call fcn.00456a8c
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x456b15
xor eax, eax
call fcn.00456ac4
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_ShowWindow
cmp byte [ebp - 9], 0
je 0x456b2f
mov al, 1
call fcn.00456ac4
mov esp, ebp
pop ebp
ret

Function at 0x4571f8
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [0x45dbb0]
cmp dword [eax + 0x30], 0
je 0x4572c2
mov eax, dword [ebp - 4]
cmp dword [eax + 0x94], 0
jne 0x4572b9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x14], eax
mov al, byte [ebp - 5]
mov byte [ebp - 0x10], al
lea eax, [ebp - 0x14]
push eax
push 0x457178
call sub.user32.dll_EnumWindows
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
cmp dword [eax + 8], 0
je 0x4572b9
push 3
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_GetWindow
mov dword [ebp - 0x14], eax
push 0xffffffffffffffec
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x457273
mov dword [ebp - 0x14], 0xfffffffe
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
mov eax, dword [eax + 8]
dec eax
cmp eax, 0
jl 0x4572b9
mov dword [ebp - 0xc], eax
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
call fcn.00414f1c
push eax
call sub.user32.dll_SetWindowPos
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0xffffffff
jne 0x457288
mov eax, dword [ebp - 4]
inc dword [eax + 0x94]
mov esp, ebp
pop ebp
ret

Function at 0x457fd8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0xa4], 0
je 0x45801d
push pe_nt_image_headers32
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, dword [ebp - 8]
call fcn.004042d0
jmp 0x45802e
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x8c]
call fcn.00404234
mov esp, ebp
pop ebp
ret
Function at 0x4594a0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x84], 0
je 0x4594f3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.0043a828
test al, al
je 0x4594f3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.0043a464
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4594f3
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.0043a464
push eax
call sub.user32.dll_ShowWindow
pop ecx
pop ebp
ret
Function at 0x405290
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51213b
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x549e00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xe4], ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xc8]
push eax
push 0xb7
call fcn.004051f0
add esp, 8
test edi, edi
je 0x4054dc
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4054dc
mov eax, 0xb6
mov byte [ebp - 0xc8], 0x41
mov word [ebp - 0xc7], ax
mov eax, dword [ebp + 0x10]
push 0x20
mov dword [ebp - 0xc5], eax
lea eax, [ebp - 0xc1]
push edi
push eax
call fcn.004bc400
movups xmm0, xmmword [esi]
add esp, 0xc
mov byte [ebp - 0xa2], 0
mov dword [ebp - 0xd0], 8
movups xmmword [ebp - 0xa1], xmm0
mov dword [ebp - 0xcc], 0xf
movups xmm0, xmmword [esi + 0x10]
movups xmmword [ebp - 0x91], xmm0
movups xmm0, xmmword [esi + 0x20]
movups xmmword [ebp - 0x81], xmm0
movups xmm0, xmmword [esi + 0x30]
movups xmmword [ebp - 0x71], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0xe0], xmm0
mov dword [ebp - 0xe0], 0x656d6147
mov dword [ebp - 0xdc], 0x6578652e
mov byte [ebp - 0xd8], 0
mov esi, dword [ebp - 0xe4]
lea eax, [ebp - 0xe0]
push eax
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00403be0
mov ecx, dword [ebp - 0xcc]
mov dword [ebp - 0x1d], eax
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0xf
jbe 0x4053e2
mov edx, dword [ebp - 0xe0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4053d8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4054fb
push ecx
push edx
call fcn.0048a407
add esp, 8
mov eax, dword [0x51f900]
xorps xmm0, xmm0
movups xmmword [ebp - 0xe0], xmm0
mov dword [ebp - 0xd8], eax
movq xmm0, qword [0x51f8f8]
mov ax, word [0x51f904]
mov dword [ebp - 0xd0], 0xe
mov dword [ebp - 0xcc], 0xf
movq qword [ebp - 0xe0], xmm0
mov word [ebp - 0xd4], ax
mov byte [ebp - 0xd2], 0
lea eax, [ebp - 0xe0]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.00403be0
mov ecx, dword [ebp - 0xcc]
mov dword [ebp - 0x19], eax
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0xf
jbe 0x405488
mov edx, dword [ebp - 0xe0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40547e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405500
push ecx
push edx
call fcn.0048a407
add esp, 8
push 0xb7
lea eax, [ebp - 0xc8]
mov dword [ebp - 0xd0], 0
push eax
mov ecx, 0x54cf98
mov dword [ebp - 0xcc], 0xf
mov byte [ebp - 0xe0], 0
mov dword [ebp - 0x15], 0x134d82d
call fcn.004083d0
test eax, eax
je 0x4054dc
push 0x2710
push 0
mov ecx, 0x54cf98
call fcn.00408410
mov eax, 1
jmp 0x4054de
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048a3c9
mov esp, ebp
pop ebp
ret 0xc
call fcn.004d6ba3
call fcn.004d6ba3
int3
Function at 0x40cf90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x40cffc
cmp byte [edi], 0
je 0x40cffc
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40cfa6
sub ecx, edx
cmp ecx, 0x104
jae 0x40cffc
mov esi, edi
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x40cfc0
sub esi, ecx
push esi
push edi
push 0x550560
call fcn.004afa00
add esp, 0xc
cmp byte [esi + edi - 1], 0x5c
je 0x40cfe7
mov byte [esi + 0x550560], 0x5c
inc esi
cmp esi, 0x104
jae 0x40d051
pop edi
mov byte [esi + 0x550560], 0
mov al, 1
pop esi
pop ebp
ret
push 0
push 0x10
push 0x550560
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x40d017
pop edi
xor al, al
pop esi
pop ebp
ret
mov ecx, 0x550560
dec ecx
nop dword [eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x40d020
mov eax, dword [0x5202fc]
mov dword [ecx], eax
mov eax, dword [0x520300]
mov dword [ecx + 4], eax
mov ax, word [0x520304]
mov word [ecx + 8], ax
mov al, byte [0x520306]
pop edi
mov byte [ecx + 0xa], al
mov al, 1
pop esi
pop ebp
ret
call fcn.0048a8c5
int3
Function at 0x40dcb0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51251d
mov eax, dword fs:[0]
push eax
mov eax, 0x1240
call fcn.0048ac20
mov eax, dword [0x549e00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x217]
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0x103
push ebx
push eax
mov dword [ebp - 0x1240], edi
mov byte [ebp - 0x218], bl
call fcn.004b0500
push 0x103
lea eax, [ebp - 0x113]
mov byte [ebp - 0x114], bl
push ebx
push eax
call fcn.004b0500
add esp, 0x18
lea ecx, [ebp - 0x123c]
call dword [sym.imp.Engine.dll_public:_void___thiscall_KPakFile::constructor_void_]
lea ecx, [ebp - 0x124c]
mov dword [ebp - 4], ebx
call dword [sym.imp.Engine.dll_public:_void___thiscall_KFile::constructor_void_]
mov byte [ebp - 4], 1
mov dword [edi], ebx
test esi, esi
je 0x40de4c
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40de4c
lea eax, [ebp - 0x114]
push eax
push ebx
push str.KSG_
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x40de4c
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x124c]
call dword [sym.imp.Engine.dll_public:_int___thiscall_KFile::Create_char__]
test eax, eax
je 0x40de4c
push esi
lea ecx, [ebp - 0x123c]
call dword [sym.imp.Engine.dll_public:_int___thiscall_KPakFile::Open_char_const__]
test eax, eax
je 0x40de40
lea ecx, [ebp - 0x123c]
call dword [sym.imp.Engine.dll_public:_unsigned_long_int___thiscall_KPakFile::Size_void_]
mov edi, eax
test edi, edi
jle 0x40de08
nop word [eax + eax]
push 0x1000
lea eax, [ebp - 0x1218]
push eax
lea ecx, [ebp - 0x123c]
call dword [sym.imp.Engine.dll_public:_unsigned_long_int___thiscall_KPakFile::Read_void___unsigned_int_]
mov esi, eax
test esi, esi
je 0x40de08
push esi
lea eax, [ebp - 0x1218]
push eax
lea ecx, [ebp - 0x124c]
call dword [sym.imp.Engine.dll_public:_unsigned_long_int___thiscall_KFile::Write_void___unsigned_long_int_]
sub edi, esi
test edi, edi
jg 0x40ddd0
lea ecx, [ebp - 0x123c]
call dword [sym.imp.Engine.dll_public:_void___thiscall_KPakFile::Close_void_]
lea ecx, [ebp - 0x124c]
call dword [sym.imp.Engine.dll_public:_void___thiscall_KFile::Close_void_]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_LoadCursorFromFileA]
mov ecx, dword [ebp - 0x1240]
mov dword [ecx], eax
test eax, eax
je 0x40de4c
mov ebx, 1
jmp 0x40de4c
lea ecx, [ebp - 0x124c]
call dword [sym.imp.Engine.dll_public:_void___thiscall_KFile::Close_void_]
cmp byte [ebp - 0x114], 0
je 0x40de69
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 0x114], 0
lea ecx, [ebp - 0x124c]
call dword [sym.imp.Engine.dll_public:_void___thiscall_KFile::destructor_void_]
lea ecx, [ebp - 0x123c]
call dword [sym.imp.Engine.dll_public:_void___thiscall_KPakFile::destructor_void_]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048a3c9
mov esp, ebp
pop ebp
ret
Function at 0x410bd0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push esi
push edi
xor esi, esi
mov edi, ecx
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x410c0b
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
test eax, eax
je 0x410bf9
push 0xffffffffffffffff
push eax
mov ecx, edi
call fcn.004103c0
mov esi, eax
test byte [edi + 0x40], 0x10
je 0x410c05
call dword [sym.imp.USER32.dll_EmptyClipboard]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
mov eax, esi
pop esi
ret

Function at 0x415190
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
call fcn.00414fa0
mov ebx, eax
test ebx, ebx
js 0x41524f
cmp ebx, dword [esi + 0x48]
jge 0x41524f
cmp dword [esi + 0x98], 0
je 0x415246
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x41524f
sub edi, dword [esi + 0x18]
test edi, edi
jle 0x41524f
mov eax, dword [esi + 0x44]
mov ecx, dword [eax + ebx*4]
mov eax, dword [ecx + 4]
cdq
sub eax, edx
sar eax, 1
imul eax, dword [esi + 0x60]
cmp edi, eax
jg 0x41524f
push 0x20
push 0x3a
push 0
push dword [ecx + 0x14]
lea eax, [ecx + 0x124]
push eax
call sub.Engine.dll_TFindSpecialCtrlInEncodedText
add esp, 0x14
test eax, eax
js 0x41524f
push 1
push 0
push 0
push dword [esi + 0x60]
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push ecx
push dword [esi + 0x54]
push eax
mov eax, dword [esi + 0x44]
mov eax, dword [eax + ebx*4]
add eax, 0x124
push eax
call sub.Engine.dll_TGetEncodedTextLineCount
mov eax, dword [esi + 0x60]
add esp, 0x20
imul eax, dword [ebp + 0xc]
cdq
sub eax, edx
sar eax, 1
cmp edi, eax
jg 0x41524f
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret 8
Function at 0x417d60
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x549e00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
cmp eax, 0x204
ja 0x417ee3
je 0x417ebd
mov ecx, eax
sub ecx, 0x200
je 0x417f36
sub ecx, 1
jne 0x417ef1
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x417f7f
mov eax, dword [esi + 4]
test eax, 0x800
jne 0x417e5a
cmp dword [esi + 0x64], 9
jne 0x417de8
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x417de8
push dword [esi + 0x48]
call fcn.0045e110
add esp, 4
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048a3c9
mov esp, ebp
pop ebp
ret 0xc
push 0
call fcn.004190a0
add esp, 4
test eax, eax
je 0x417e12
push 0
mov ecx, esi
call fcn.00416c30
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048a3c9
mov esp, ebp
pop ebp
ret 0xc
cmp dword [esi + 0x44], 0
je 0x417f7f
mov ecx, dword [esi + 0x3c]
lea edx, [ebp - 0x14]
push 0
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov eax, dword [ecx]
push edx
push 0x511
call dword [eax + 0x10]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048a3c9
mov esp, ebp
pop ebp
ret 0xc
cmp dword [esi + 0x44], 0
je 0x417e92
movups xmm0, xmmword [esi + 0x44]
push esi
lea edx, [ebp - 0x24]
movups xmmword [ebp - 0x24], xmm0
push edx
movups xmm0, xmmword [esi + 0x54]
push 0x512
movups xmmword [ebp - 0x14], xmm0
mov eax, dword [ecx]
call dword [eax + 0x10]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048a3c9
mov esp, ebp
pop ebp
ret 0xc
test eax, 0x8000
je 0x417f7f
push esi
push 0
push 0x512
mov eax, dword [ecx]
call dword [eax + 0x10]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048a3c9
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x417f7f
cmp dword [esi + 0x44], 0
lea edx, [esi + 0x44]
je 0x417eda
push esi
push edx
push 0x513
jmp 0x417ea5
test dword [esi + 4], 0x8000
jmp 0x417e97
cmp eax, 0x2a1
je 0x417f36
cmp eax, 0x507
je 0x417f10
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push eax
call fcn.0041cda0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048a3c9
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0x10]
and dword [esi + 4], 0xfffffbff
push dword [ebp + 0xc]
push eax
call fcn.0041cda0
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048a3c9
mov esp, ebp
pop ebp
ret 0xc
or dword [esi + 4], 0x400
cmp dword [esi + 0x44], 0
je 0x417f7f
push 0
push esi
mov ecx, 0x54e4e8
call fcn.0040a200
test eax, eax
jne 0x417f7f
test dword [esi + 4], 0x200
jne 0x417f7f
mov ecx, dword [ebp + 0x10]
push eax
mov eax, ecx
shr eax, 0x10
push eax
movzx eax, cx
push eax
push dword [esi + 0x64]
push dword [esi + 0x48]
push dword [esi + 0x44]
push 0
push esi
call fcn.0040abe0
add esp, 0x20
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0048a3c9
mov esp, ebp
pop ebp
ret 0xc
Function at 0x427720
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x549e00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x427845
cmp byte [eax], 0
je 0x427845
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.Engine.dll_void___cdecl_g_GetFullPath_char___char__]
lea ecx, [ebp - 0x108]
add esp, 8
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x427761
sub ecx, edx
push ebx
lea ebx, [ecx + 1]
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x24c], ebx
dec ecx
nop dword [eax + eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x427780
mov eax, dword [str..]
mov dword [ecx], eax
mov al, byte [0x521f90]
mov byte [ecx + 4], al
lea eax, [ebp - 0x248]
push edi
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x42781e
mov ecx, ebx
lea eax, [ebp - 0x21c]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
sub ecx, eax
push esi
lea esi, [ebp - 0x108]
add esi, ecx
nop
lea eax, [ebp - 0x21c]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [esi + eax - 1], cl
test cl, cl
jne 0x4277d6
push 0x80
lea eax, [ebp - 0x108]
push eax
call ebx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x248]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4277d0
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [ebp - 0x24c]
cmp byte [ebp + 0xc], 0
pop edi
je 0x427844
lea eax, [ebx - 1]
cmp eax, 0x104
jae 0x427855
mov byte [ebp + eax - 0x108], 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048a3c9
mov esp, ebp
pop ebp
ret 8
call fcn.0048a8c5
int3