joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18007d4dc
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x1800b2220]
xor rax, rsp
mov qword [rbp + 0x4f], rax
and qword [rbp - 9], 0
lea rax, [0x1800807b0]
and qword [rbp + 0xf], 0
lea r8, [rbp + 7]
mov rdi, rcx
mov qword [rbp + 0x17], rax
xorps xmm0, xmm0
mov dword [rbp + 7], 0x30
lea rcx, [rbp - 9]
mov dword [rbp + 0x1f], 0x40
mov edx, 0x101
movdqu xmmword [rbp + 0x27], xmm0
call sub.ntdll.dll_NtOpenKey
mov ebx, eax
test eax, eax
js 0x18007d5a4
mov rcx, qword [rbp - 9]
lea r9, [rbp + 0x37]
xor eax, eax
lea rdx, [0x1800807a0]
mov dword [rbp + 0x47], eax
xorps xmm0, xmm0
lea rax, [rbp - 1]
mov r8d, 2
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x14
movups xmmword [rbp + 0x37], xmm0
call sub.ntdll.dll_NtQueryValueKey
mov ebx, eax
test eax, eax
js 0x18007d5a4
cmp dword [rbp + 0x3b], 4
jne 0x18007d59f
cmp dword [rbp + 0x3f], 4
jne 0x18007d59f
xor eax, eax
cmp dword [rbp + 0x43], 1
sete al
xor ebx, ebx
mov dword [rdi], eax
jmp 0x18007d5a4
mov ebx, 0xc000003e
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x18007d5b2
call sub.ntdll.dll_NtClose
mov eax, ebx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.180024680
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x18007d624
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rsi, rdx
mov rdi, rcx
xor r14d, r14d
lea rdx, str.Network_ComputerName
lea rcx, [rbp - 9]
mov qword [rbp + 0x7f], r14
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
lea rdx, str.RegistryMachineSystemCurrentControlSetControlComputerNameActiveComputerName
lea rcx, [rbp - 0x19]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
lea rax, [rbp - 0x19]
mov dword [rbp + 0x17], 0x30
mov qword [rbp + 0x27], rax
lea r8, [rbp + 0x17]
lea rax, [rbp + 0x77]
mov qword [rbp + 0x1f], r14
mov qword [rsp + 0x30], rax
lea rcx, [rbp + 0x7f]
lea rax, [rbp - 9]
mov dword [rsp + 0x28], 1
xorps xmm0, xmm0
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov dword [rbp + 0x2f], 0x40
mov edx, 0x2001f
movdqu xmmword [rbp + 0x37], xmm0
call qword [sym.imp.ntdll.dll_NtCreateKey]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x18007d75e
cmp dword [rbp + 0x77], 2
jne 0x18007d70a
mov r9, rdi
mov qword [rsp + 0x20], rsi
lea r8, str.ComputerName
xor ecx, ecx
lea rdx, str.RegistryMachineSystemCurrentControlSetControlComputerNameActiveComputerName
call fcn.18007d9c0
cmp eax, 0xc0000034
jne 0x18007d70a
lea ebx, [rax - 0x33]
jmp 0x18007d75e
lea rdx, str.ComputerName
lea rcx, [rbp + 7]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r14w
jne 0x18007d725
mov rcx, qword [rbp + 0x7f]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, [rbp + 7]
mov r9d, 1
mov qword [rsp + 0x20], rdi
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtSetValueKey]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [rbp + 0x7f]
test rcx, rcx
je 0x18007d773
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x18007d8f8
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
lea r8, [rsp + 0x38]
and dword [rsp + 0x38], ebx
xor edx, edx
mov edi, ecx
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetComputerNameExW]
nop dword [rax + rax]
test eax, eax
jne 0x18007d9a9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xea
jne 0x18007d9a9
call qword [sym.imp.KERNELBASE.dll_KernelBaseGetGlobalData]
nop dword [rax + rax]
mov rcx, qword gs:[0x60]
mov r8d, dword [rsp + 0x38]
add r8, r8
mov edx, dword [rax]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x18007d9a9
lea r8, [rsp + 0x38]
mov rdx, rax
mov ecx, edi
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetComputerNameExW]
nop dword [rax + rax]
test eax, eax
jne 0x18007d9a9
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
xor ebx, ebx
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18007da68
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor r15d, r15d
mov edi, r15d
mov ebp, r15d
test ecx, ecx
js 0x18007dc3e
lea r14d, [r15 + 2]
cmp ecx, r14d
jle 0x18007dc36
cmp ecx, 3
je 0x18007dabb
jle 0x18007dc3e
cmp ecx, 6
jle 0x18007dc36
cmp ecx, 7
jne 0x18007dc3e
mov ecx, 1
call fcn.18007da68
mov ecx, r14d
mov rsi, rax
call fcn.18007da68
mov rbx, rax
test rsi, rsi
jne 0x18007daee
test rax, rax
je 0x18007dc3e
lea ecx, [rsi + 1]
call fcn.18007d8f8
mov rsi, rax
jmp 0x18007dafe
test rax, rax
jne 0x18007dafe
mov ecx, r14d
call fcn.18007d8f8
mov rbx, rax
or rdi, 0xffffffffffffffff
test rsi, rsi
je 0x18007db14
mov rbp, rdi
inc rbp
cmp word [rsi + rbp*2], r15w
jne 0x18007db0a
test rbx, rbx
je 0x18007dc0e
inc rdi
cmp word [rbx + rdi*2], r15w
jne 0x18007db1d
test edi, edi
je 0x18007dc0e
test ebp, ebp
je 0x18007dc0e
cmp edi, 1
jne 0x18007db66
cmp word [rbx], 0x2e
jne 0x18007db66
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rbx, r15
mov edi, r15d
call qword [sym.imp.KERNELBASE.dll_KernelBaseGetGlobalData]
nop dword [rax + rax]
mov rcx, qword gs:[0x60]
mov edx, dword [rax]
lea eax, [rdi + 2]
mov rcx, qword [rcx + 0x30]
add eax, ebp
mov r14d, eax
lea r8, [rax + rax]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x18007dbe9
mov r8, rsi
mov edx, r14d
mov rcx, rax
call qword [sym.imp.ntdll.dll_wcscpy_s]
nop dword [rax + rax]
lea r8, [0x180088314]
mov edx, r14d
mov rcx, rdi
call qword [sym.imp.ntdll.dll_wcscat_s]
nop dword [rax + rax]
test rbx, rbx
je 0x18007dbe9
mov r8, rbx
mov edx, r14d
mov rcx, rdi
call qword [sym.imp.ntdll.dll_wcscat_s]
nop dword [rax + rax]
test rsi, rsi
je 0x18007dc11
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
jmp 0x18007dc11
mov rdi, rsi
test rbx, rbx
je 0x18007dc3e
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
jmp 0x18007dc3e
call fcn.18007dc64
mov rdi, rax
mov rbx, qword [rsp + 0x40]
mov rax, rdi
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x14019c0d0
Capabilities:
Parse pe header

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

Function at 0x1401a0750
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1401a054c
Function at 0x1401a3804
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 0x1401a3834
xor eax, eax
jmp 0x1401a38f7
mov rbp, rbx
cmp word [rax], si
je 0x1401a3859
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1401a3840
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1401a383c
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.1401a3724
movsxd r14, eax
test eax, eax
jne 0x1401a3897
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1401a382d
mov rcx, r14
call fcn.1401a4298
mov rdi, rax
test rax, rax
jne 0x1401a38b0
xor ecx, ecx
call fcn.1401a1d5c
jmp 0x1401a388c
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.1401a3724
test eax, eax
jne 0x1401a38e1
mov rcx, rdi
call fcn.1401a1d5c
jmp 0x1401a38eb
xor ecx, ecx
call fcn.1401a1d5c
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 0x1401a9060
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1401a9088
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1401a9088
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140001c1c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001c66
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001c66
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001c66
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001c66
cmp dword [rcx + 0x84], 0xe
jbe 0x140001c66
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001c68
xor al, al
add rsp, 0x28
ret
Function at 0x180024d40
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x18024d000]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180024e13
cmp byte [rcx + 0x71], 0
je 0x180024e13
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x180024e0f
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 0x180024dd4
sub eax, 1
je 0x180024dd8
cmp eax, 2
jne 0x180024e0f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800eb8d0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180024e06
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 0x180024e0f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x180024dbc
xor al, al
jmp 0x180024dbc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800eb8d0
add rsp, 0x60
pop rbx
ret

Function at 0x180029940
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x18024d000]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov byte [rbp - 0x28], 0xe0
lea r8, [rbp - 0x28]
mov byte [rbp - 0x27], 0xc4
xor eax, eax
mov byte [rbp - 0x26], 0xc2
mov rbx, rcx
mov byte [rbp - 0x25], 0xd8
xor edx, edx
mov byte [rbp - 0x24], 0xc4
mov byte [rbp - 0x23], 0xcf
mov byte [rbp - 0x22], 0xc3
mov byte [rbp - 0x21], 0xd9
mov byte [rbp - 0x20], 0xcb
mov byte [rbp - 0x1f], 0xdb
mov byte [rbp - 0x1e], 0xdd
mov byte [rbp - 0x1d], 0xd3
mov byte [rbp - 0x1c], 0x95
mov byte [rbp - 0x1b], 0xd5
mov byte [rbp - 0x1a], 0xd8
mov byte [rbp - 0x19], 0xd6
mov byte [rbp - 0x18], 0xdf
mov byte [rbp - 0x17], 0xd3
mov byte [rbp - 0x16], 0xdc
mov byte [rbp - 0x15], al
movzx eax, byte [rbp - 0x28]
nop dword [rax]
movzx eax, byte [r8]
lea ecx, [rdx - 0x57]
xor cl, al
lea r8, [r8 + 1]
movsxd rax, edx
inc edx
mov byte [rbp + rax - 0x28], cl
cmp edx, 0x13
jb 0x1800299c0
lea rcx, [rbp - 0x28]
mov byte [rbp - 0x15], 0
call fcn.1800e5ab0
lea rdx, [rbx + 0x30]
lea rcx, [rbp - 0x48]
call fcn.180002840
mov r8b, 1
mov rdx, rax
mov rcx, rbx
call fcn.180029bc0
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1800eb8d0
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret
Function at 0x18002b540
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x18024d000]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x18002b56d
xor eax, eax
jmp 0x18002b6d6
mov qword [rsp + 0xa0], rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x18002b5ad
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x18002b5ad
mov rcx, rdi
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], sil
mov eax, esi
jmp 0x18002b6ce
cmp qword [rdi + 0x80], 0
je 0x18002b6c9
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rdi + 0x70]
cmp rax, rcx
jne 0x18002b5e7
mov rdx, qword [rdi + 0x88]
mov rcx, rdi
mov r9, qword [rdi + 0x90]
mov r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x18002b612
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x18002b6ce
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], sil
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
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 0x18002b681
sub eax, 1
je 0x18002b681
cmp eax, 2
jne 0x18002b6c9
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x18002b6ce
mov rbx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x18002b6af
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x18002b6c9
lea rax, [rsp + 0x40]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, esi
mov eax, ecx
jmp 0x18002b6ce
mov eax, 0xffffffff
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1800eb8d0
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x18002f960
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rsi, r8
mov r14, rdx
mov rbp, rcx
test r8, r8
jg 0x18002f991
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je 0x18002f9af
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 qword [rsp + 0x30], rbx
mov rbx, rsi
mov qword [rsp + 0x38], rdi
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
test rax, rax
je 0x18002f9f9
cmp rax, rsi
mov rdi, rsi
mov rcx, rbp
cmovb rdi, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, rdi
mov rcx, r14
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, edi
mov rcx, rbp
add r14, rdi
sub rbx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
cmp qword [rbp + 0x80], 0
mov rdi, rbx
je 0x18002fa71
mov rcx, rbp
call fcn.1800257b0
cmp rbx, 0xfff
jbe 0x18002fa51
nop word [rax + rax]
mov r9, qword [rbp + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x18002fa92
cmp rbx, rax
ja 0x18002fa20
test rdi, rdi
je 0x18002fa71
mov r9, qword [rbp + 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 rdi, rax
sub rsi, rdi
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
sub rsi, rbx
jmp 0x18002fa74
Function at 0x18002faa0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x18002fac8
add rsp, 0x20
pop r14
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 qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov rbp, rax
test rbx, rbx
jle 0x18002fb3c
test rax, rax
jle 0x18002fb1c
cmp rbx, rax
mov rcx, rdi
cmovl rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, rbp
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
add r14, rbp
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
test rbx, rbx
jle 0x18002fb3c
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x18002fb3c
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x40]
sub rsi, rbx
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret

Function at 0x180035840
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov ecx, 1
call fcn.1800eb404
mov qword [rsp + 0x40], rax
lea rdi, [rbx + 8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x180035940]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x180035897
mov rax, rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov dword [rdi], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x180036480
Capabilities:
Create directory
Query environment variable

Disassembly:
push rbx
sub rsp, 0xb0
mov rax, qword [0x18024d000]
xor rax, rsp
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x88]
call fcn.1800e7c50
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
mov ecx, 0x50
call fcn.1800eb404
mov rcx, rax
mov qword [rsp + 0x28], rax
movdqa xmm0, xmmword [0x1801a4c40]
movdqu xmmword [rsp + 0x38], xmm0
movaps xmm1, xmmword [str...LocalPackagesMicrosoft.MinecraftUWP_8wekyb3d8bbweRoamingState_]
movups xmmword [rax], xmm1
movaps xmm0, xmmword [0x1800fbfb0]
movups xmmword [rax + 0x10], xmm0
movaps xmm1, xmmword [0x1800fbfc0]
movups xmmword [rax + 0x20], xmm1
movaps xmm0, xmmword [0x1800fbfd0]
movups xmmword [rax + 0x30], xmm0
mov eax, dword [0x1800fbfe0]
mov dword [rcx + 0x40], eax
movzx eax, byte [0x1800fbfe4]
mov byte [rcx + 0x44], al
mov byte [rcx + 0x45], 0
lea rcx, str.APPDATA
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
lea r8, [rsp + 0x28]
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.180016030
nop
mov r9, rbx
mov r8, rax
movzx edx, byte [rsp + 0x20]
lea rcx, [rsp + 0x48]
call fcn.180022510
nop
mov rdx, qword [rsp + 0x80]
cmp rdx, 0xf
jbe 0x180036597
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180036592
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180036592
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800eb440
movdqa xmm0, xmmword [0x1800f73e0]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], 0
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x1800365ea
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800365e5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800365e5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800eb440
movdqa xmm0, xmmword [0x1800f73e0]
movdqu xmmword [rsp + 0x38], xmm0
mov byte [rsp + 0x28], 0
mov rdx, qword [rsp + 0xa0]
cmp rdx, 0xf
jbe 0x180036643
inc rdx
mov rcx, qword [rsp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003663e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003663e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800eb440
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0xf
cmova rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x18003669a
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180036695
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180036695
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800eb440
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1800eb8d0
add rsp, 0xb0
pop rbx
ret