joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800de5b0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x181447d2c]
mov ebx, edi
test ecx, ecx
je 0x1800de6eb
mov rax, qword [0x181447d20]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x1800de608
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800de5e0
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x1800de6eb
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.1800de2d0
mov r8d, dword [0x181447d2c]
cmp ebx, r8d
jae 0x1800de678
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x181447d20]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x1800de671
mov edx, esi
mov ecx, ebx
call fcn.1800de480
mov edi, eax
test eax, eax
jne 0x1800de678
mov r8d, dword [0x181447d2c]
inc ebx
cmp ebx, r8d
jb 0x1800de640
cmp qword [rsp + 0x20], 0
je 0x1800de6eb
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800de6d7
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800de6c8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x1800de6a0
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18143ad40]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1800dea20
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
mov edi, 1
mov r14d, r15d
mov ebx, r15d
xor eax, eax
lock cmpxchg dword [0x18143ad38], edi
je 0x1800dea69
cmp rbx, 0x20
jae 0x1800dea52
xor ecx, ecx
jmp 0x1800dea54
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18143ad38], edi
jne 0x1800dea48
cmp qword [0x18143ad40], r14
mov qword [rsp + 0x60], r13
je 0x1800debfb
mov ecx, dword [0x181447d2c]
mov ebx, r15d
test ecx, ecx
je 0x1800deaa1
mov rdx, qword [0x181447d20]
mov rax, rdx
cmp qword [rax], r14
je 0x1800deaac
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800dea92
mov r14d, 4
jmp 0x1800dec01
cmp ebx, 0xffffffff
je 0x1800deaa1
mov eax, ebx
imul r13, rax, 0x38
test byte [rdx + r13 + 0x20], 2
je 0x1800deb60
xor r8d, r8d
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.1800de2d0
xor edx, edx
mov ecx, ebx
call fcn.1800de480
mov r14d, eax
cmp qword [rsp + 0x20], r15
je 0x1800deb50
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800deb3c
mov rdi, qword [rsp + 0x20]
mov qword [rsp + 0x50], rbp
mov ebp, eax
mov qword [rsp + 0x58], rsi
nop
mov r8d, dword [rdi]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800deb28
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rdi, 4
sub rbp, 1
jne 0x1800deb00
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18143ad40]
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r14d, r14d
jne 0x1800dec01
mov rdx, qword [0x181447d20]
mov rcx, qword [rdx + r13 + 0x10]
call fcn.1800dd8a0
mov edx, dword [0x181447d2c]
dec edx
cmp ebx, edx
jae 0x1800debaf
mov eax, edx
imul rcx, rax, 0x38
mov rax, qword [0x181447d20]
movups xmm0, xmmword [rcx + rax]
movups xmmword [rax + r13], xmm0
movups xmm1, xmmword [rcx + rax + 0x10]
movups xmmword [rax + r13 + 0x10], xmm1
movups xmm0, xmmword [rcx + rax + 0x20]
movups xmmword [rax + r13 + 0x20], xmm0
movsd xmm1, qword [rcx + rax + 0x30]
movsd qword [rax + r13 + 0x30], xmm1
mov ecx, dword [0x181447d28]
mov eax, ecx
mov dword [0x181447d2c], edx
shr eax, 1
cmp eax, 0x20
jb 0x1800dec01
cmp eax, edx
jb 0x1800dec01
mov r8, qword [0x181447d20]
mov eax, ecx
mov rcx, qword [0x18143ad40]
xor edx, edx
shr rax, 1
imul r9, rax, 0x38
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
test rax, rax
je 0x1800dec01
shr dword [0x181447d28], 1
mov qword [0x181447d20], rax
jmp 0x1800dec01
mov r14d, 2
xchg dword [0x18143ad38], r15d
mov r13, qword [rsp + 0x60]
mov eax, r14d
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x1800dec20
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x18143ad38], ebp
je 0x1800dec77
cmp rbx, 0x20
jae 0x1800dec60
xor ecx, ecx
jmp 0x1800dec62
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18143ad38], ebp
jne 0x1800dec56
cmp qword [0x18143ad40], r15
je 0x1800ded71
test rdi, rdi
jne 0x1800dec97
mov ecx, esi
call fcn.1800de5b0
mov ebp, eax
jmp 0x1800ded76
mov ecx, dword [0x181447d2c]
mov ebx, r15d
test ecx, ecx
je 0x1800decbf
mov r8, qword [0x181447d20]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x1800decc9
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800decb0
mov ebp, 4
jmp 0x1800ded76
cmp ebx, 0xffffffff
je 0x1800decbf
mov eax, ebx
imul rdx, rax, 0x38
movzx eax, byte [rdx + r8 + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x1800ded68
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.1800de2d0
mov edx, esi
mov ecx, ebx
call fcn.1800de480
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x1800ded76
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800ded52
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x1800ded48
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x1800ded20
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18143ad40]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1800ded76
neg esi
sbb ebp, ebp
add ebp, 6
jmp 0x1800ded76
mov ebp, 2
xchg dword [0x18143ad38], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x1800e2ce0
Capabilities:
Set console window title

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor ecx, ecx
mov qword [rbx + 0x28], rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea r8, [0x18014e4b4]
mov rcx, rbx
mov r9, rax
lea rdx, str.CONIN_
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
lea rcx, [rbx + 8]
lea r8, [0x18014e4c0]
lea rdx, str.CONOUT_
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
lea rcx, [rbx + 0x10]
lea r8, [0x18014e4c0]
lea rdx, str.CONOUT_
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
lea rcx, str.Debug_Console
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov rcx, qword [rbx + 0x28]
mov edx, 5
add rsp, 0x20
pop rbx
jmp qword [sym.imp.USER32.dll_ShowWindow]
Function at 0x1800e38f0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x370
mov rax, qword [0x18016a040]
xor rax, rsp
mov qword [rsp + 0x360], rax
mov rbx, qword [0x181439f78]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbx], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 8], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
mov qword [rbx + 0x10], rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [rsp + 0x28]
lea rdx, [rsp + 0x30]
sub eax, dword [rsp + 0x20]
mov r8d, 0x104
mov rcx, qword [rbx + 0x10]
mov dword [rbx + 0x18], eax
mov eax, dword [rsp + 0x2c]
sub eax, dword [rsp + 0x24]
mov dword [rbx + 0x1c], eax
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov rcx, qword [rbx + 0x10]
lea rax, [rsp + 0x30]
mov r8d, 0x104
mov qword [rbx + 0x28], rax
lea rdx, [rsp + 0x140]
call qword [sym.imp.USER32.dll_GetClassNameA]
mov rcx, qword [rbx + 8]
lea rax, [rsp + 0x140]
mov r9d, 0x104
mov qword [rbx + 0x30], rax
lea r8, [rsp + 0x250]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExA]
lea rax, [rsp + 0x250]
mov r8d, 0xd
mov qword [rbx + 0x38], rax
lea rdx, str.GameData::Init___Process_Window_Info_Established_n
mov rcx, qword [0x181439f68]
call fcn.1800e2da0
mov rdi, qword [0x181439f88]
mov rcx, rdi
call fcn.1800e2e50
test al, al
je 0x1800e3a5d
mov rax, qword [0x181440508]
lea rdx, [0x1800e35b0]
mov r8, rdi
mov rbx, qword [rax + 0x40]
mov rcx, rbx
call fcn.1800de790
test eax, eax
jne 0x1800e3a16
lea edx, [rax + 1]
mov rcx, rbx
call fcn.1800dec20
mov rax, qword [0x181440508]
lea r8, [rdi + 8]
lea rdx, [fcn.18003f720]
mov rbx, qword [rax + 0x60]
mov rcx, rbx
call fcn.1800de790
test eax, eax
jne 0x1800e3a43
lea edx, [rax + 1]
mov rcx, rbx
call fcn.1800dec20
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 0xd
lea rdx, str.D3D11Window::Hook_Initialized_n
jmp 0x1800e3a6a
mov r8d, 0xc
lea rdx, str.___D3D11Window::Hook_Failed_to_Initialize_n
mov rcx, qword [0x181439f68]
call fcn.1800e2da0
lea rcx, str.PalWorld_Win64_Shipping.exe
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ecx, ecx
mov qword [0x181438b70], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
add rax, 0x87b9000
mov qword [0x18143ad48], rax
call fcn.18003b350
mov rcx, qword [0x181438b70]
lea r8, [0x18143ad00]
add rcx, qword [0x181438b78]
lea rdx, [0x18003b2f0]
mov qword [0x18143ad08], rcx
mov qword [0x181438eb8], rax
call fcn.1800de790
xor eax, eax
xorps xmm0, xmm0
xor ecx, ecx
mov qword [0x181438f10], rax
movups xmmword [0x181438f00], xmm0
lea edx, [rax + 1]
call fcn.1800dec20
mov rcx, qword [0x181439f68]
lea rdx, str.Hooking::Hook_Initialized_n
mov r8d, 0xd
call fcn.1800e2da0
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.180104a40
mov rbx, qword [rsp + 0x380]
add rsp, 0x370
pop rdi
ret
Function at 0x1800ea4e0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x1800ea501
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1800ea52e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1800ea530
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1800ea589
test ecx, ecx
jle 0x1800ea569
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1800ea589
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1800ea589
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
invalid
add dword [rdi + 0x42], edx
je 0x180276cd0
add dword gs:[0x1c5b5afe1], ebp
add qword [r10 - 0x6c], rsp
cld
js 0x180276c19
sub al, 1
hlt
jp 0x180276d22
invalid
Function at 0x1800ea5b0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1800ea5d2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x1800ea5e1
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1800ea604
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1800ea606
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1800ea642
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1800ea6de
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1800ea67d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x1800ea6be
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x1800ea6de
cmp rbx, rax
ja 0x1800ea690
test rbx, rbx
je 0x1800ea6de
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
jl 0x180276d2e
cmp dh, 0xbe
sar byte [rsi], cl
add al, 0xfa
outsb dx, byte [esi]
push 0x507a9c44
Function at 0x1800eab10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x18016a040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1800eab3d
xor eax, eax
jmp 0x1800eaca9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1800eab77
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1800eab77
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1800eaca9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1800eac9c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1800eabba
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1800eabe5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1800eaca1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1800eac54
sub eax, 1
je 0x1800eac54
cmp eax, 2
jne 0x1800eac9c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1800eaca1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1800eac82
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1800eac9c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1800eaca1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180104a40
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1800eb640
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x18016a040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1800eb713
cmp byte [rcx + 0x71], 0
je 0x1800eb713
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1800eb70f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1800eb6d4
sub eax, 1
je 0x1800eb6d8
cmp eax, 2
jne 0x1800eb70f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180104a40
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1800eb706
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1800eb70f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1800eb6bc
xor al, al
jmp 0x1800eb6bc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180104a40
add rsp, 0x60
pop rbx
ret
Function at 0x1422ca058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1422ca1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1422ca089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1422ca06f
add dl, dl
jne 0x1422ca096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1422ca0f6
xor eax, eax
add dl, dl
jne 0x1422ca0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1422ca1ad
add dl, dl
jne 0x1422ca0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1422ca0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1422ca0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1422ca0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1422ca0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1422ca07e
mov eax, 1
add dl, dl
jne 0x1422ca106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1422ca113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1422ca0fb
sub eax, ebx
mov ebx, 1
jne 0x1422ca14c
mov ecx, 1
add dl, dl
jne 0x1422ca12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1422ca13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1422ca123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1422ca07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1422ca168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1422ca175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1422ca15d
cmp eax, 0x7d00
jae 0x1422ca19b
cmp eax, 0x500
jb 0x1422ca196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1422ca07e
cmp eax, 0x7f
ja 0x1422ca19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1422ca07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1422ca1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1422ca07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x18000109a
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x1b8
lea rbp, [rsp + 0x80]
lea rax, [0x1800be060]
mov qword [rbp + 0x110], rax
mov rax, qword [rbp + 0x110]
mov rax, qword [rax + 0x40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp + 0x108], rax
mov rax, qword [rbp + 0x110]
mov eax, dword [rax + 0x5c]
mov ebx, eax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov r8, rbx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapAlloc]
call rax
mov qword [rbp + 0x100], rax
mov rax, qword [rbp + 0x110]
mov eax, dword [rax + 0x5c]
mov edx, eax
mov rax, qword [rbp + 0x100]
mov rcx, rax
call sym.sqlite3.dll_sqlite3_column_count
mov rax, qword [rbp + 0x100]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call rax
mov rax, qword [rbp + 0x110]
mov rax, qword [rax + 0x1c]
mov qword [rbp + 0xf8], rax
mov dword [rbp + 0x12c], 0
Function at 0x180001160
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [rbp + 0x12c]
add byte [rax], al
lea rdx, [rax + rax]
mov rax, qword [rbp + 0x100]
add rax, rdx
movzx eax, word [rax]
test ax, ax
je 0x180001181
add dword [rbp + 0x12c], 1
jmp 0x18000115c
mov eax, dword [rbp + 0x12c]
mov dword [rbp + 0x128], eax
mov eax, dword [rbp + 0x128]
sub eax, 1
mov eax, eax
lea rdx, [rax + rax]
mov rax, qword [rbp + 0x100]
add rax, rdx
movzx eax, word [rax]
cmp ax, 0x5c
je 0x1800011d1
mov eax, dword [rbp + 0x128]
lea rdx, [rax + rax]
mov rax, qword [rbp + 0x100]
add rax, rdx
mov word [rax], 0
sub dword [rbp + 0x128], 1
jmp 0x18000118d
mov dword [rbp + 0x124], 0
mov eax, dword [rbp + 0x124]
mov rdx, qword [rbp + 0xf8]
add rax, rdx
movzx eax, byte [rax]
test al, al
je 0x18000122e
mov eax, dword [rbp + 0x124]
mov rdx, qword [rbp + 0xf8]
add rax, rdx
movzx eax, byte [rax]
mov edx, dword [rbp + 0x128]
lea rcx, [rdx + rdx]
mov rdx, qword [rbp + 0x100]
add rdx, rcx
cbw
mov word [rdx], ax
add dword [rbp + 0x128], 1
add dword [rbp + 0x124], 1
jmp 0x1800011db
lea rax, [rbp + 0x10]
mov edx, 0x68
mov rcx, rax
call sym.sqlite3.dll_sqlite3_column_count
lea rax, [rbp - 0x10]
mov edx, 0x18
mov rcx, rax
call sym.sqlite3.dll_sqlite3_column_count
mov rax, qword [rbp + 0x100]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 1
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileW]
call rax
mov qword [rbp + 0xf0], rax
cmp qword [rbp + 0xf0], 0xffffffffffffffff
je 0x1800016ac
mov rax, qword [rbp + 0xf0]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileSize]
call rax
mov dword [rbp + 0xec], eax
mov rax, qword [rbp + 0x110]
mov eax, dword [rax + 0x24]
mov ebx, eax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov r8, rbx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapAlloc]
call rax
mov qword [rbp + 0xe0], rax
mov rax, qword [rbp + 0x110]
mov eax, dword [rax + 0x24]
mov edx, eax
mov rax, qword [rbp + 0xe0]
mov rcx, rax
call sym.sqlite3.dll_sqlite3_column_count
mov dword [rbp - 0x14], 0
lea rcx, [rbp - 0x14]
mov r8d, dword [rbp + 0xec]
mov rdx, qword [rbp + 0xe0]
mov rax, qword [rbp + 0xf0]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadFile]
call rax
test eax, eax
sete al
test al, al
jne 0x1800016af
mov eax, dword [rbp - 0x14]
mov edx, eax
mov rax, qword [rbp + 0xe0]
add rax, rdx
mov qword [rbp + 0xd8], rax
mov rax, qword [rbp + 0x110]
mov eax, dword [rax + 0x18]
mov eax, eax
add qword [rbp + 0xe0], rax
mov rax, qword [rbp + 0xe0]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax]
mov dword [rbp + 0xd4], eax
mov rax, qword [rbp - 0x20]
add rax, 4
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
nop
jmp 0x1800016b9
nop
jmp 0x1800016b9