joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180095ba0
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 [0x1800c83a8], ebp
je 0x180095bf7
cmp rbx, 0x20
jae 0x180095be0
xor ecx, ecx
jmp 0x180095be2
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1800c83a8], ebp
jne 0x180095bd6
cmp qword [0x1800c83b0], r15
je 0x180095cf1
test rdi, rdi
jne 0x180095c17
mov ecx, esi
call fcn.1800954d0
mov ebp, eax
jmp 0x180095cf6
mov ecx, dword [0x1800c9a1c]
mov ebx, r15d
test ecx, ecx
je 0x180095c3f
mov r8, qword [0x1800c9a10]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x180095c49
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180095c30
mov ebp, 4
jmp 0x180095cf6
cmp ebx, 0xffffffff
je 0x180095c3f
mov eax, ebx
imul rdx, rax, 0x38
movzx eax, byte [rdx + r8 + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x180095ce8
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.1800951f0
mov edx, esi
mov ecx, ebx
call fcn.1800953a0
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x180095cf6
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180095cd2
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 0x180095cc8
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 0x180095ca0
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800c83b0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180095cf6
neg esi
sbb ebp, ebp
add ebp, 6
jmp 0x180095cf6
mov ebp, 2
xchg dword [0x1800c83a8], 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 0x18009bd40
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 + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor ecx, ecx
mov qword [rbx + 0x60], rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea r8, [0x1800b75b4]
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, [0x1800b75c0]
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, [0x1800b75c0]
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 + 0x60]
mov edx, 5
add rsp, 0x20
pop rbx
jmp qword [sym.imp.USER32.dll_ShowWindow]
Function at 0x18009ca70
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x370
mov rax, qword [0x1800c3040]
xor rax, rsp
mov qword [rsp + 0x360], rax
mov rbx, qword [0x1800c7c88]
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 qword [rbx + 0x38], rax
lea rdx, str.GameData::Init___Process_Window_Info_Established_n
mov rcx, qword [0x1800c7c78]
mov r8d, dword [rcx + 0x48]
call fcn.18009be00
mov rdi, qword [0x1800c7ca0]
mov rcx, rdi
call fcn.18009beb0
test al, al
je 0x18009cbe0
mov rax, qword [0x1800c84a8]
lea rdx, [0x18009c6e0]
mov r8, rdi
mov rbx, qword [rax + 0x40]
mov rcx, rbx
call fcn.1800956b0
test eax, eax
jne 0x18009cb94
lea edx, [rax + 1]
mov rcx, rbx
call fcn.180095ba0
mov rax, qword [0x1800c84a8]
lea r8, [rdi + 8]
lea rdx, [fcn.180002700]
mov rbx, qword [rax + 0x60]
mov rcx, rbx
call fcn.1800956b0
test eax, eax
jne 0x18009cbc1
lea edx, [rax + 1]
mov rcx, rbx
call fcn.180095ba0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x1800c7c78]
lea rdx, str.D3D11Window::Hook_Initialized_n
mov r8d, dword [rcx + 0x48]
jmp 0x18009cbf2
mov rcx, qword [0x1800c7c78]
lea rdx, str.___D3D11Window::Hook_Failed_to_Initialize_n
mov r8d, dword [rcx + 0x44]
call fcn.18009be00
lea rcx, str.PalWorld_WinGDK_Shipping.exe
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, qword [0x1800c7858]
lea r8, [0x1800c8370]
add rcx, rax
mov qword [0x1800c7850], rax
add rax, qword [0x1800c7860]
lea rdx, [0x1800010f0]
mov qword [0x1800c8368], rax
mov qword [0x1800c8378], rcx
call fcn.1800956b0
mov rcx, qword [0x1800c8368]
lea r8, [0x1800c8360]
lea rdx, [0x1800010d0]
call fcn.1800956b0
mov edx, 1
xor ecx, ecx
call fcn.180095ba0
mov rcx, qword [0x1800c7c78]
lea rdx, str.Hooking::Hook_Initialized_n
mov r8d, dword [rcx + 0x48]
call fcn.18009be00
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.18009e1f0
mov rbx, qword [rsp + 0x380]
add rsp, 0x370
pop rdi
ret
Function at 0x140698058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406981df
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 0x140698089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14069806f
add dl, dl
jne 0x140698096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406980f6
xor eax, eax
add dl, dl
jne 0x1406980a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406981ad
add dl, dl
jne 0x1406980b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406980c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406980d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406980dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406980ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14069807e
mov eax, 1
add dl, dl
jne 0x140698106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140698113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406980fb
sub eax, ebx
mov ebx, 1
jne 0x14069814c
mov ecx, 1
add dl, dl
jne 0x14069812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14069813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140698123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14069807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140698168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140698175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14069815d
cmp eax, 0x7d00
jae 0x14069819b
cmp eax, 0x500
jb 0x140698196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14069807e
cmp eax, 0x7f
ja 0x14069819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14069807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406981d2
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 0x14069807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400a02d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400a031a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400a031a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400a031a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400a031a
cmp dword [rcx + 0x84], 0xe
jbe 0x1400a031a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400a031c
xor al, al
add rsp, 0x28
ret

Function at 0x1400b2694
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400b248b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400b248b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400b248b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400b248b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400b248b
cmp dword [rcx + 0x84], 0xe
jbe 0x1400b248b
cmp dword [rcx + 0xf8], 0
je 0x1400b248b
mov ecx, ebx
call fcn.1400b259c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400b21f0
nop
cmp dword [rbp + 0x20], 0
je 0x1400b24d9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400b24e4
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400b241c
Function at 0x1400e10d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140148ed0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400e1127
cmp word [rdx], r13w
jne 0x1400e1127
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400e112c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400e1251
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400e1272
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400e1165
mov rdx, r9
mov word [rbx], cx
jmp 0x1400e118c
cmp r9, r8
jae 0x1400e119c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400e1146
jmp 0x1400e1251
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400e1246
cmp dword [rsp + 0x80], esi
je 0x1400e1246
lea r8, [0x140148ed0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400e121e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400e11ee
mov word [rbx], r13w
jmp 0x1400e124e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400e11fb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400e124e
cmp word [rsp + 0x70], r13w
jne 0x1400e122b
cmp rbx, r14
je 0x1400e11e8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400f240c
cmp word [rsp + 0x70], r13w
je 0x1400e1251
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140148ed0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400e124b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400e1251
Function at 0x1400e32dc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400e32f2
mov al, 1
jmp 0x1400e3352
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400e3303
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400e3350
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400eac68
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400e3350
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400e3350
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400e3350
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400e3352
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400e8920
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400e8950
xor eax, eax
jmp 0x1400e8a13
mov rbp, rbx
cmp word [rax], si
je 0x1400e8975
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400e895c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400e8958
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400e87a0
movsxd r14, eax
test eax, eax
jne 0x1400e89b3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400e8949
mov rcx, r14
call fcn.1400e5240
mov rdi, rax
test rax, rax
jne 0x1400e89cc
xor ecx, ecx
call fcn.1400e0304
jmp 0x1400e89a8
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400e87a0
test eax, eax
jne 0x1400e89fd
mov rcx, rdi
call fcn.1400e0304
jmp 0x1400e8a07
xor ecx, ecx
call fcn.1400e0304
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400f954c
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400f240c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400f240c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400f969c
cmp rax, 0xffffffffffffffff
je 0x1400f969c
xor edi, edi
test rbp, rbp
jle 0x1400f9647
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400e52a0
mov rbx, rax
test rax, rax
jne 0x1400f95d4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400f963d
mov edx, 0x8000
mov ecx, r14d
call fcn.1400b653c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400e2c48
cmp eax, 0xffffffff
je 0x1400f961d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400f95e4
mov edx, r15d
mov ecx, r14d
call fcn.1400b653c
jmp 0x1400f963d
cmp byte [rsi + 0x38], dil
je 0x1400f9634
cmp dword [rsi + 0x34], 5
jne 0x1400f9634
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400f963d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400e0304
jmp 0x1400f96b0
jns 0x1400f96b0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400f240c
cmp rax, 0xffffffffffffffff
jne 0x1400f9668
cmp byte [rsi + 0x30], dil
je 0x1400f96b0
mov edi, dword [rsi + 0x2c]
jmp 0x1400f96b0
mov ecx, r14d
call fcn.1400eac68
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400f96b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400f96b0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400f96a9
mov eax, dword [rsi + 0x2c]
jmp 0x1400f96ae
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400f240c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1400fd530
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400fd558
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400fd558
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400024a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140008010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400024cd
xor eax, eax
jmp 0x14000262a
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x1400024f8
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x1400024f8
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x14000262a
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000261d
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14000253b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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 0x140002566
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 0x140002622
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 0x1400025d5
sub eax, 1
je 0x1400025d5
cmp eax, 2
jne 0x14000261d
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 0x140002622
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002603
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 0x14000261d
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002622
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400039a0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002990
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140008010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002a63
cmp byte [rcx + 0x71], 0
je 0x140002a63
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140002a5f
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 0x140002a24
sub eax, 1
je 0x140002a28
cmp eax, 2
jne 0x140002a5f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400039a0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002a56
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 0x140002a5f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140002a0c
xor al, al
jmp 0x140002a0c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400039a0
add rsp, 0x60
pop rbx
ret

Function at 0x14000433c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004386
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004386
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004386
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004386
cmp dword [rcx + 0x84], 0xe
jbe 0x140004386
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140004388
xor al, al
add rsp, 0x28
ret
Function at 0x140030064
Capabilities:
Parse pe header

Disassembly:
jmp 0x14006a87c
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14006a647
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14006a647
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14006a647
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14006a647
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14006a647
cmp dword [rcx + 0x84], 0xe
jbe 0x14006a647
cmp dword [rcx + 0xf8], 0
je 0x14006a647
mov ecx, ebx
call fcn.14006a7d8
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14006a33c
cmp dword [rbp + 0x20], 0
je 0x14006a694
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14006a6cc
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14006a5e0

Function at 0x1400300f0
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140072254
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x14009c388]
mov ecx, 5
lea r8, [0x14009c380]
lea rdx, str.FlsGetValue
call fcn.14007184c
mov ecx, ebx
test rax, rax
je 0x14007228e
add rsp, 0x20
pop rbx
jmp qword [0x1400b9010]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x140030870
Capabilities:
Terminate process

Disassembly:
jmp 0x1400378e0
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140030b8b
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1400722ac
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x14009c3a8]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 6
lea r8, [0x14009c3a0]
call fcn.14007184c
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x1400722ec
call qword [0x1400b9010]
jmp 0x1400722f2
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140030bf4
Capabilities:
Parse pe header

Disassembly:
jmp 0x14006a8fc
xor r8d, r8d
xor edx, edx
jmp 0x14006a5e0