joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14014b70c
Capabilities:
Write file on windows

Disassembly:
test r8d, r8d
je 0x14014b74a
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov rdi, rcx
mov ebx, r8d
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14014b74b
cmp dword [rsp + 0x50], ebx
jne 0x14014b768
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
lea rcx, [rdi + 0x18]
call fcn.140017b50
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rbx
call fcn.14014c03c
int3
lea rcx, [rdi + 0x18]
call fcn.140017b50
or edx, 0xffffffff
mov r8, rax
lea ecx, [rdx + 0xe]
call fcn.14014bb90
int3

Function at 0x140151a20
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140151a6a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140151a6a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140151a6a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140151a6a
cmp dword [rcx + 0x84], 0xe
jbe 0x140151a6a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140151a6c
xor al, al
add rsp, 0x28
ret
Function at 0x14015a8f1
Capabilities:
Create thread
Terminate process

Disassembly:
push rbp
sub rsp, 0xa0
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x60], rsi
mov qword [rbp + 0x58], rbx
lea rax, [0x14021b138]
mov qword [rbp + 8], rax
mov dword [rbp], 0
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x8c]
mov qword [rbp + 0x10], rax
mov rax, qword [rbp + 0x10]
mov edx, 0
mov ecx, 0
mov rbx, qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [rbp + 0x40], ecx
mov rcx, rax
mov eax, dword [rbp + 0x40]
mov r8d, eax
call rbx
mov qword [rbp + 0x18], rax
mov rax, qword [rbp + 0x18]
sbb byte [r8 - 0x77], r9b
and byte [r8 - 0x75], r9b
or byte [r8 - 0x75], r9b
and al, 0x48
mov dword [rbp + 0x28], eax
mov eax, 0
mov edx, 0
mov rcx, qword [rbp + 0x28]
mov ebx, 0
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov rsi, qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x48], rcx
mov rcx, rax
mov rax, qword [rbp + 0x48]
mov r8, rax
mov r9, rbx
call rsi
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x30]
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0x38]
test rax, rax
jne 0x14015a9c5
mov eax, 0
mov rdx, qword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, eax
call rdx
mov rax, qword [rbp + 0x38]
mov edx, 0xffffffff
mov rcx, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov qword [rbp + 0x50], rcx
mov rcx, rax
mov rax, qword [rbp + 0x50]
call rax
mov dword [rbp + 4], eax
mov rbx, qword [rbp + 0x58]
mov rsi, qword [rbp + 0x60]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x14015a950
Capabilities:
Create thread
Terminate process

Disassembly:
push rbp
sub rsp, 0xa0
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x60], rsi
mov qword [rbp + 0x58], rbx
lea rax, [0x14021b138]
mov qword [rbp + 8], rax
mov dword [rbp], 0
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x8c]
mov qword [rbp + 0x10], rax
mov rax, qword [rbp + 0x10]
mov edx, 0
mov ecx, 0
mov rbx, qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [rbp + 0x40], ecx
mov rcx, rax
mov eax, dword [rbp + 0x40]
mov r8d, eax
call rbx
mov qword [rbp + 0x18], rax
mov rax, qword [rbp + 0x18]
sbb byte [r8 - 0x77], r9b
and byte [r8 - 0x75], r9b
or byte [r8 - 0x75], r9b
and al, 0x48
mov dword [rbp + 0x28], eax
mov eax, 0
mov edx, 0
mov rcx, qword [rbp + 0x28]
mov ebx, 0
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov rsi, qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x48], rcx
mov rcx, rax
mov rax, qword [rbp + 0x48]
mov r8, rax
mov r9, rbx
call rsi
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x30]
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0x38]
test rax, rax
jne 0x14015a9c5
mov eax, 0
mov rdx, qword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, eax
call rdx
mov rax, qword [rbp + 0x38]
mov edx, 0xffffffff
mov rcx, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov qword [rbp + 0x50], rcx
mov rcx, rax
mov rax, qword [rbp + 0x50]
call rax
mov dword [rbp + 4], eax
mov rbx, qword [rbp + 0x58]
mov rsi, qword [rbp + 0x60]
lea rsp, [rbp + 0x70]
pop rbp
ret
Function at 0x140164aec
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14021b668]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x140164b36
call fcn.1401581d4
mov dword [rax], 0xf
call fcn.1401581f4
mov dword [rax], 0xd
call fcn.140158088
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140151370
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x140164b41
lea eax, [rbx + 1]
jmp 0x140164b23
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x140164b21
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x140164b23

Function at 0x140164e94
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140164ecb
call fcn.1401581f4
mov dword [rax], 0x16
call fcn.140158088
xor eax, eax
jmp 0x140164f59
mov rdx, r9
mov rcx, r8
call fcn.140164e30
mov rbx, rax
test rax, rax
je 0x140164f56
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140164d5c]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140164f43
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140158168
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140164f2a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140164f39
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14016bd18
jmp 0x140164f56
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140164f53
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140165284
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140165080
Function at 0x140171e68
Capabilities:
Get file size

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1401725fb
mov rsi, rbx
cmp word [rax], bp
je 0x1401725ba
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1401725a4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1401725a0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14016bd54
mov rdi, rax
test rax, rax
je 0x1401725e8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1401535f0
mov rbp, rdi
xor ecx, ecx
call fcn.14016bd18
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1401768c0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1401768e8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1401768e8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x6d7cf950
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d7f05e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d7cfad8
mov rax, qword [0x6d7f05e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d7cf99c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d7cfa25
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d7cf980
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d7cfb0d
mov rax, qword [0x6d7f05e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d7f05e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d7cfaf0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d7cfa1e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d7cfa80
add dword [0x6d7f05e4], 1
cmp edi, 8
jae 0x6d7cfa53
test dil, 4
jne 0x6d7cfac4
test edi, edi
je 0x6d7cfa48
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d7cfadf
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d7cfa48
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d7cfa6c
jmp 0x6d7cfa48
add rsi, qword [0x6d7f05e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d7cfa1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d7cfa48
xor esi, esi
jmp 0x6d7cf9a7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d7cfa48
mov rax, qword [0x6d7f05e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d7d0260
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d7f08c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d7f08a0]
test rbx, rbx
je 0x6d7d02b4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d7d02ab
test rsi, rsi
je 0x6d7d02ab
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d7d0290
lea rcx, [0x6d7f08c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d7d04f0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d7d0500
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d7d0510
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d7d0551
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d7d0548
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d7d0553
add rax, 0x28
cmp rax, r9
jne 0x6d7d0534
xor eax, eax
ret

Function at 0x6d7d05f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7ed1f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d7d065d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d065d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7d065d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7d0654
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d065f
add rax, 0x28
cmp rax, r9
jne 0x6d7d0640
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d7d0760
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7ed1f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d7d0780
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d0778
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7d07dd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7d07d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d07e4
add rax, 0x28
cmp rax, r9
jne 0x6d7d07c0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d7d0800
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d7ed1f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d7d086e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d086e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d7d086e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d7d086e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d7d0865
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d7d0875
add rcx, 0x28
cmp rcx, rax
jne 0x6d7d0850
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d7d0888
jmp 0x6d7d086e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d7d0896
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d7d086e
test r9d, r9d
jg 0x6d7d0880
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d7d0bd0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x18000e9b0
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 0x18000e9d2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x18000e9e8
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 0x18000ea04
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18000ea06
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18000ea42
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 0x18000eade
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x18000ea7d
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 0x18000eabe
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 0x18000eade
cmp rbx, rax
ja 0x18000ea90
test rbx, rbx
je 0x18000eade
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

Function at 0x18000eb00
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 0x18000eb28
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 0x18000eb4e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x18000eb50
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x18000eba9
test ecx, ecx
jle 0x18000eb89
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 0x18000eba9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x18000eba9
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
Function at 0x18000ef60
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1801af118]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x18000ef8d
xor eax, eax
jmp 0x18000f0f9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x18000efc7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x18000efc7
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 0x18000f0f9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x18000f0ec
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18000f00a
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 0x18000f035
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 0x18000f0f1
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 0x18000f0a4
sub eax, 1
je 0x18000f0a4
cmp eax, 2
jne 0x18000f0ec
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 0x18000f0f1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x18000f0d2
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 0x18000f0ec
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x18000f0f1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1801274b0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x18000f120
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1801af118]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x18000f1f3
cmp byte [rcx + 0x71], 0
je 0x18000f1f3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x18000f1ef
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 0x18000f1b4
sub eax, 1
je 0x18000f1b8
cmp eax, 2
jne 0x18000f1ef
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1801274b0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x18000f1e6
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 0x18000f1ef
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18000f19c
xor al, al
jmp 0x18000f19c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1801274b0
add rsp, 0x60
pop rbx
ret