joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400032d0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov rax, qword [0x1400bb088]
xor rax, rsp
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 0x1fffff
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
lea rcx, [0x140096928]
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor r14d, r14d
lea rbx, [0x1400bb130]
mov esi, r14d
mov rdi, rax
nop
mov rdx, qword [rbx - 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx - 0x18], rax
mov rcx, rdi
mov rdx, qword [rbx - 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx], rax
mov rcx, rdi
mov rdx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
add esi, 3
mov qword [rbx + 0x18], rax
lea rbx, [rbx + 0x48]
cmp esi, 3
jb 0x140003330
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.ntdll
mov rbx, rax
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
jne 0x1400033a3
lea rdx, str.NTDLL
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x140003413
mov esi, r14d
lea rdi, [0x1400bb118]
nop dword [rax]
mov r8, qword [rdi + 8]
lea rax, [rsp + 0x30]
mov rdx, qword [rdi]
mov r9d, 0x40
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rdx, qword [rdi]
mov rcx, rbp
mov r9, qword [rdi + 8]
mov r8, rdx
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9d, dword [rsp + 0x30]
mov rcx, rbp
mov r8, qword [rdi + 8]
mov ebx, eax
mov rdx, qword [rdi]
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test ebx, ebx
je 0x140003413
inc esi
add rdi, 0x18
cmp esi, 3
jb 0x1400033b0
lea rcx, [0x140096928]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14000345b
lea rdx, str.DbgBreakPoint
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x14000345b
mov edx, 1
lea r9, [rsp + 0x30]
mov rcx, rax
lea r8d, [rdx + 0x3f]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14000345b
mov byte [rbx], 0xc3
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140080f30
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 0x140003490
Capabilities:
Execute anti-debugging instructions
Terminate process

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1400bb088]
xor rax, rsp
mov qword [rsp + 0x30], rax
rdtsc
shl rdx, 0x20
or rax, rdx
mov rcx, rax
rdtsc
shl rdx, 0x20
or rax, rdx
sub rax, rcx
cmp rax, 0x1f4
jbe 0x14000351e
xor ecx, ecx
mov eax, 1
cpuid
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x24], ebx
test ecx, ecx
jns 0x14000351e
mov eax, 0x40000000
lea r8, [0x1400bb108]
xor ecx, ecx
cpuid
mov dword [rsp + 0x20], eax
lea rax, str.Xi_t_
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x24], ecx
mov rbx, qword [rsp + 0x20]
mov rcx, qword [rax]
cmp qword [rcx], rbx
jne 0x140003515
cmp dword [rcx + 8], edx
jne 0x140003515
cmp byte [rcx + 0xc], 0
je 0x140003533
add rax, 8
cmp rax, r8
jne 0x140003502
xor al, al
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140080f30
add rsp, 0x40
pop rbx
ret
mov r9d, reloc.WS2_32.dll_recv
lea r8, str.Fatal_Error
lea rdx, str.Virtual_Machines_Are_Not_Allowed_
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x140003770
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 8], 0
je 0x140003793
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x1e]
xor byte [rax + rcx], dl
inc rax
cmp rax, 7
jb 0x140003780
mov byte [rcx + 8], 0
mov rax, rcx
ret

Function at 0x1400037a0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 5], 0
je 0x1400037c3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x1e]
xor byte [rax + rcx], dl
inc rax
cmp rax, 4
jb 0x1400037b0
mov byte [rcx + 5], 0
mov rax, rcx
ret

Function at 0x140004390
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x16], 0
je 0x1400043b3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x1e]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x15
jb 0x1400043a0
mov byte [rcx + 0x16], 0
mov rax, rcx
ret

Function at 0x1400043c0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0xa], 0
je 0x1400043e3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x1e]
xor byte [rax + rcx], dl
inc rax
cmp rax, 9
jb 0x1400043d0
mov byte [rcx + 0xa], 0
mov rax, rcx
ret
Function at 0x1400050d0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x12], 0
je 0x1400050f3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x1e]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x11
jb 0x1400050e0
mov byte [rcx + 0x12], 0
mov rax, rcx
ret

Function at 0x140005100
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x1f], 0
je 0x140005123
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x1e]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x1e
jb 0x140005110
mov byte [rcx + 0x1f], 0
mov rax, rcx
ret

Function at 0x140005130
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x1400bb088]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor ebx, ebx
mov dword [rbp + 0x3f], ebx
mov dword [rbp - 9], 0x8980978c
mov dword [rbp - 5], 0x858cc98a
mov word [rbp - 1], 0x86
mov byte [rbp + 1], 1
mov ecx, ebx
nop dword [rax]
lea eax, [rcx - 0x1e]
xor byte [rbp + rcx - 9], al
inc rcx
cmp rcx, 9
jb 0x140005180
mov byte [rbp + 1], bl
lea rcx, [rbp - 9]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
jne 0x1400051d8
lea rcx, str.Failed_to_load_ntdll.dll_n
call fcn.140002040
xor eax, eax
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140080f30
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
movdqa xmm0, xmmword [0x1400ad1d0]
movdqu xmmword [rbp + 0xf], xmm0
mov dword [rbp + 0x1f], 0x87a49d9d
mov dword [rbp + 0x23], 0x8a9d9499
mov word [rbp + 0x27], 0x89
mov byte [rbp + 0x29], 1
mov rcx, rbx
lea eax, [rcx - 0x1e]
xor byte [rbp + rcx + 0xf], al
inc rcx
cmp rcx, 0x19
jb 0x140005200
mov byte [rbp + 0x29], bl
lea rdx, [rbp + 0xf]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
jne 0x14000528b
movdqa xmm0, xmmword [0x1400ad370]
movdqu xmmword [rbp + 0xf], xmm0
movdqa xmm1, xmmword [0x1400acd00]
movdqu xmmword [rbp + 0x1f], xmm1
mov dword [rbp + 0x2f], 0x6a76536c
mov dword [rbp + 0x33], 0x7a7b6265
mov word [rbp + 0x37], bx
mov byte [rbp + 0x39], 1
nop dword [rax + rax]
lea eax, [rbx - 0x1e]
xor byte [rbp + rbx + 0xf], al
inc rbx
cmp rbx, 0x29
jb 0x140005260
mov byte [rbp + 0x39], 0
lea rcx, [rbp + 0xf]
call fcn.140002040
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1400051b1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov qword [rsp + 0x20], rbx
mov r9d, 4
lea r8, [rbp + 0x3f]
lea edx, [r9 + 0x1b]
call rsi
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
jne 0x1400051b1
cmp dword [rbp + 0x3f], ebx
jne 0x1400051b1
movdqa xmm0, xmmword [0x1400ad1b0]
movdqu xmmword [rbp - 9], xmm0
mov word [rbp + 7], 0x81
mov byte [rbp + 9], 1
lea rcx, [rbp - 9]
call fcn.1400050d0
mov rdx, rax
lea rcx, [rbp + 0xf]
call fcn.140003560
nop
lea rcx, [rbp + 0xf]
call fcn.1400042e0
int3
Function at 0x1400053d0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x13], 0
je 0x1400053f3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x1e]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x12
jb 0x1400053e0
mov byte [rcx + 0x13], 0
mov rax, rcx
ret

Function at 0x140005400
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x1400bb088]
xor rax, rsp
mov qword [rbp + 0x4f], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x17], xmm0
movups xmmword [rbp + 0x27], xmm0
movups xmmword [rbp + 0x37], xmm0
xor ebx, ebx
mov dword [rbp + 0x47], ebx
mov dword [rbp - 0x39], 0x1497148c
mov dword [rbp - 0x35], 0x14891480
mov dword [rbp - 0x31], 0x14c9148a
mov dword [rbp - 0x2d], 0x1485148c
mov dword [rbp - 0x29], 0x1486
mov byte [rbp - 0x25], 1
mov ecx, ebx
mov edx, 0x14e2
nop dword [rax]
nop word [rax + rax]
lea eax, [rdx + rcx]
xor word [rbp + rcx*2 - 0x39], ax
inc rcx
cmp rcx, 9
jb 0x140005470
mov byte [rbp - 0x25], bl
lea rcx, [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r8, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140005530
movdqa xmm0, xmmword [0x1400ad1d0]
movdqu xmmword [rbp - 9], xmm0
mov dword [rbp + 7], 0x87a49d9d
mov dword [rbp + 0xb], 0x8a9d9499
mov word [rbp + 0xf], 0x89
mov byte [rbp + 0x11], 1
nop dword [rax]
nop dword [rax + rax]
lea eax, [rbx - 0x1e]
xor byte [rbp + rbx - 9], al
inc rbx
cmp rbx, 0x19
jb 0x1400054d0
mov byte [rbp + 0x11], 0
lea rdx, [rbp - 9]
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x140005591
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rcx, [rbp + 0x47]
mov qword [rsp + 0x20], rcx
mov r9d, Ordinal_50
lea r8, [rbp + 0x17]
xor edx, edx
mov rcx, rax
call rbx
test eax, eax
js 0x140005530
mov rax, qword [rbp + 0x1f]
test rax, rax
je 0x140005530
cmp byte [rax + 2], 0
jne 0x14000554d
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140080f30
mov rbx, qword [rsp + 0xd0]
add rsp, 0xc0
pop rbp
ret
movdqa xmm0, xmmword [0x1400ad050]
movdqu xmmword [rbp - 0x39], xmm0
movdqa xmm1, xmmword [0x1400acc30]
movdqu xmmword [rbp - 0x29], xmm1
mov word [rbp - 0x19], reloc.WLDAP32.dll_Ordinal_35
mov byte [rbp - 0x17], 1
lea rcx, [rbp - 0x39]
call fcn.140005610
mov rdx, rax
lea rcx, [rbp - 9]
call fcn.140003560
nop
lea rcx, [rbp - 9]
call fcn.1400043f0
nop
movdqa xmm0, xmmword [0x1400ad140]
movdqu xmmword [rbp - 0x39], xmm0
movdqa xmm1, xmmword [0x1400acc10]
movdqu xmmword [rbp - 0x29], xmm1
mov dword [rbp - 0x19], 0x62716167
mov dword [rbp - 0x15], 0x277a6261
mov word [rbp - 0x11], 0x100
lea rcx, [rbp - 0x39]
call fcn.1400055e0
mov rdx, rax
lea rcx, [rbp - 9]
call fcn.140003560
nop
lea rcx, [rbp - 9]
call fcn.1400043f0
int3

Function at 0x1400055e0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x29], 0
je 0x140005603
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x1e]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x28
jb 0x1400055f0
mov byte [rcx + 0x29], 0
mov rax, rcx
ret
Function at 0x140005610
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x22], 0
je 0x140005633
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x1e]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x21
jb 0x140005620
mov byte [rcx + 0x22], 0
mov rax, rcx
ret

Function at 0x140005640
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x50
xor ebx, ebx
mov dword [rbp - 0x30], 0x1497148c
mov ecx, ebx
mov dword [rbp - 0x2c], 0x14891480
mov dword [rbp - 0x28], 0x14c9148a
mov edx, 0x14e2
mov dword [rbp - 0x24], 0x1485148c
mov dword [rbp - 0x20], 0x1486
mov byte [rbp - 0x1c], 1
nop dword [rax]
lea eax, [rdx + rcx]
xor word [rbp + rcx*2 - 0x30], ax
inc rcx
cmp rcx, 9
jb 0x140005680
lea rcx, [rbp - 0x30]
mov byte [rbp - 0x1c], bl
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r8, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x14000570e
movdqa xmm0, xmmword [0x1400ad200]
movdqu xmmword [rbp - 0x18], xmm0
mov dword [rbp - 8], 0x90869ba6
mov dword [rbp - 4], 0x1009397
nop word [rax + rax]
lea eax, [rbx - 0x1e]
xor byte [rbp + rbx - 0x18], al
inc rbx
cmp rbx, 0x16
jb 0x1400056d0
lea rdx, [rbp - 0x18]
mov byte [rbp - 1], 0
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x14000570e
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 0x11]
call rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret

Function at 0x140005720
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x17], 0
je 0x140005743
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x1e]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x16
jb 0x140005730
mov byte [rcx + 0x17], 0
mov rax, rcx
ret

Function at 0x140005750
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
mov ecx, 0xbeef
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000576a
test ebx, ebx
je 0x140005777
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
add rsp, 0x20
pop rbx
ret

Function at 0x1400057a0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x28
lea rcx, str._s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1400057b3
add rsp, 0x28
ret

Function at 0x140005ac0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x15], 0
je 0x140005ae3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x1e]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x14
jb 0x140005ad0
mov byte [rcx + 0x15], 0
mov rax, rcx
ret
Function at 0x140009b80
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x18], 0
je 0x140009ba3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x1e]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x17
jb 0x140009b90
mov byte [rcx + 0x18], 0
mov rax, rcx
ret
Function at 0x14000a6a0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rdx
cmp byte [rcx + 0x1b], al
je 0x14000a6c3
lea edx, [rax - 0x1e]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x1a
jb 0x14000a6b0
mov byte [rcx + 0x1b], 0
lea r8, [rcx + 0x1a]
mov rdx, rcx
mov rcx, rbx
lea r9, [rsp + 0x48]
call fcn.14000da50
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x14000a6e0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rdx
cmp byte [rcx + 0x31], al
je 0x14000a703
lea edx, [rax - 0x1e]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x30
jb 0x14000a6f0
mov byte [rcx + 0x31], 0
lea r8, [rcx + 0x30]
mov rdx, rcx
mov rcx, rbx
lea r9, [rsp + 0x48]
call fcn.14000da50
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x14000abc0
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 0x14000abe8
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 0x14000ac0e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000ac10
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14000ac69
test ecx, ecx
jle 0x14000ac49
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 0x14000ac69
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000ac69
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 0x14000ac90
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 0x14000acb2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14000acc8
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 0x14000ace4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000ace6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000ad22
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 0x14000adbe
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000ad5d
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 0x14000ad9e
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 0x14000adbe
cmp rbx, rax
ja 0x14000ad70
test rbx, rbx
je 0x14000adbe
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 0x14000b220
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400bb088]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000b24d
xor eax, eax
jmp 0x14000b3b9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000b287
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14000b287
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 0x14000b3b9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000b3ac
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000b2ca
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 0x14000b2f5
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 0x14000b3b1
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 0x14000b364
sub eax, 1
je 0x14000b364
cmp eax, 2
jne 0x14000b3ac
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 0x14000b3b1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14000b392
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 0x14000b3ac
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14000b3b1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140080f30
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret

Function at 0x14000b490
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x27], 0
je 0x14000b4b3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x1e]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x26
jb 0x14000b4a0
mov byte [rcx + 0x27], 0
ret

Function at 0x14000b4c0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x23], 0
je 0x14000b4e3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x1e]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x22
jb 0x14000b4d0
mov byte [rcx + 0x23], 0
ret
Function at 0x14000b4f0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x39], 0
je 0x14000b513
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x1e]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x38
jb 0x14000b500
mov byte [rcx + 0x39], 0
ret

Function at 0x14000b520
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x37], 0
je 0x14000b543
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x1e]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x36
jb 0x14000b530
mov byte [rcx + 0x37], 0
ret

Function at 0x14000b550
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x46], 0
je 0x14000b573
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x1e]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x45
jb 0x14000b560
mov byte [rcx + 0x46], 0
ret

Function at 0x14000b580
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x43], 0
je 0x14000b5a3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x1e]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x42
jb 0x14000b590
mov byte [rcx + 0x43], 0
ret

Function at 0x14000b5b0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x32], 0
je 0x14000b5d3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x1e]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x31
jb 0x14000b5c0
mov byte [rcx + 0x32], 0
ret

Function at 0x14000b5e0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x1e], 0
je 0x14000b603
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x1e]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x1d
jb 0x14000b5f0
mov byte [rcx + 0x1e], 0
ret

Function at 0x14000b610
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x45], 0
je 0x14000b633
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x1e]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x44
jb 0x14000b620
mov byte [rcx + 0x45], 0
ret

Function at 0x14000b640
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x4c], 0
je 0x14000b663
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x1e]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x4b
jb 0x14000b650
mov byte [rcx + 0x4c], 0
ret

Function at 0x14000b670
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x5b], 0
je 0x14000b693
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x1e]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x5a
jb 0x14000b680
mov byte [rcx + 0x5b], 0
ret

Function at 0x14000b6a0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x5e], 0
je 0x14000b6c3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x1e]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x5d
jb 0x14000b6b0
mov byte [rcx + 0x5e], 0
ret

Function at 0x14000b6d0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x59], 0
je 0x14000b6f3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x1e]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x58
jb 0x14000b6e0
mov byte [rcx + 0x59], 0
ret

Function at 0x14000b700
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x40], 0
je 0x14000b723
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x1e]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x3f
jb 0x14000b710
mov byte [rcx + 0x40], 0
ret