Function at 0x180018180
Capabilities:
Create directory
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x460]
sub rsp, 0x560
mov rax, qword [0x18007e040]
xor rax, rsp
mov qword [rbp + 0x450], rax
xor esi, esi
mov dword [rsp + 0x30], esi
lea r9, [rbp + 0x38]
xor r8d, r8d
xor edx, edx
lea rcx, [0x180047af8]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
xorps xmm0, xmm0
movups xmmword [rbp - 8], xmm0
mov qword [rbp + 8], rsi
mov qword [rbp + 0x10], rsi
lea r8d, [rsi + 6]
lea rdx, str.Carbon
lea rcx, [rbp - 8]
call fcn.180017bb0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], rsi
mov qword [rbp - 0x30], rsi
mov rdx, qword [rbp + 0x38]
mov rdi, 0xffffffffffffffff
mov r8, rdi
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x180018210
lea rcx, [rbp - 0x48]
call fcn.180017bb0
nop
lea rdx, [0x180069e40]
lea rcx, [rbp - 0x48]
call fcn.1800247a0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x18], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x28], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
lea r9, [rbp - 8]
lea r8, [rbp + 0x18]
lea rcx, [rbp + 0x58]
call fcn.18001f730
nop
mov rdx, qword [rbp + 0x30]
cmp rdx, 7
jbe 0x1800182a9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800182a3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800182a3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180042f70
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 7
jbe 0x1800182ec
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800182e7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800182e7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180042f70
mov qword [rbp - 0x38], rsi
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], si
mov rdx, qword [rbp + 0x10]
cmp rdx, 7
jbe 0x18001833f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001833a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001833a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180042f70
lea rdx, [rbp + 0x58]
lea rcx, [rbp + 0x78]
call fcn.18001cec0
nop
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, [rbp + 0x58]
cmp qword [rbp + 0x70], 7
cmova rdx, qword [rbp + 0x58]
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x10], rsi
mov r8, qword [rbp + 0x68]
lea rcx, [rbp - 0x28]
call fcn.180017bb0
nop
lea rcx, [rbp - 0x28]
call fcn.1800289e0
movzx ebx, al
mov rdx, qword [rbp - 0x10]
cmp rdx, 7
jbe 0x1800183d1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800183cc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800183cc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180042f70
test bl, bl
jne 0x1800183ec
lea rcx, [rbp + 0x58]
cmp qword [rbp + 0x70], 7
cmova rcx, qword [rbp + 0x58]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
mov byte [rbp + 0x48], 0
xor edx, edx
lea rcx, [rbp + 0x50]
call fcn.180026b80
nop
lea rax, [rsp + 0x38]
mov qword [rsp + 0x78], rax
mov byte [rsp + 0x38], 4
mov byte [rsp + 0x30], 1
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
lea rdx, str.bIsHookingEnabled
lea rcx, [rbp + 0x48]
call fcn.18001d040
nop
movzx edx, byte [rax]
movzx ecx, byte [rsp + 0x38]
mov byte [rax], cl
mov byte [rsp + 0x38], dl
mov rcx, qword [rax + 8]
mov rdx, qword [rsp + 0x40]
mov qword [rax + 8], rdx
mov qword [rsp + 0x40], rcx
movzx edx, byte [rsp + 0x38]
lea rcx, [rsp + 0x40]
call fcn.1800272b0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x78], rax
xor eax, eax
mov byte [rsp + 0x48], 4
mov byte [rsp + 0x30], al
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
lea rdx, str.bEnableGUI
lea rcx, [rbp + 0x48]
call fcn.18001d040
nop
movzx edx, byte [rax]
movzx ecx, byte [rsp + 0x48]
mov byte [rax], cl
mov byte [rsp + 0x48], dl
mov rcx, qword [rax + 8]
mov rdx, qword [rsp + 0x50]
mov qword [rax + 8], rdx
mov qword [rsp + 0x50], rcx
movzx edx, byte [rsp + 0x48]
lea rcx, [rsp + 0x50]
call fcn.1800272b0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x78], rax
mov byte [rsp + 0x58], 5
mov qword [rsp + 0x60], 0x15db
lea rdx, str.ListenToPort
lea rcx, [rbp + 0x48]
call fcn.18001d040
nop
movzx edx, byte [rax]
movzx ecx, byte [rsp + 0x58]
mov byte [rax], cl
mov byte [rsp + 0x58], dl
mov rcx, qword [rax + 8]
mov rdx, qword [rsp + 0x60]
mov qword [rax + 8], rdx
mov qword [rsp + 0x60], rcx
movzx edx, byte [rsp + 0x58]
lea rcx, [rsp + 0x60]
call fcn.1800272b0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x78], rax
xor eax, eax
mov qword [rsp + 0x70], rax
mov byte [rsp + 0x68], 3
xorps xmm0, xmm0
movups xmmword [rbp + 0x98], xmm0
lea ecx, [rax + 0x20]
call fcn.180042f80
mov rbx, rax
lea rax, [rbp + 0x40]
mov qword [rbp + 0x98], rax
mov qword [rbp + 0xa0], rbx
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
mov r8d, 9
lea rdx, [0x180069ec8]
mov rcx, rbx
call fcn.180015df0
nop
mov qword [rsp + 0x70], rbx
lea rdx, str.BackendURL
lea rcx, [rbp + 0x48]
call fcn.18001d040
nop
movzx edx, byte [rax]
movzx ecx, byte [rsp + 0x68]
mov byte [rax], cl
mov byte [rsp + 0x68], dl
mov rcx, qword [rax + 8]
mov rdx, qword [rsp + 0x70]
mov qword [rax + 8], rdx
mov qword [rsp + 0x70], rcx
movzx edx, byte [rsp + 0x68]
lea rcx, [rsp + 0x70]
call fcn.1800272b0
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp + 0xb0]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 0x78]
lea rcx, [rbp + 0xb0]
call fcn.1800194f0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x60], 0xf
mov byte [rbp - 0x78], 0
mov dword [rsp + 0x30], 0x1f
xor edx, edx
mov r8d, 0x288
lea rcx, [rbp + 0x1c0]
call sub.VCRUNTIME140.dll_memset
mov ecx, 0x20
call fcn.180042f80
mov rbx, rax
mov qword [rsp + 0x78], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj2_class_nlohmann::detail::output_string_adapter_char__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____.0
mov qword [rbx], rax
lea rcx, [rbx + 0x10]
lea rax, vtable.nlohmann::detail::output_string_adapter_char__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___.0
mov qword [rcx], rax
lea rax, [rbp - 0x78]
mov qword [rcx + 8], rax
mov dword [rsp + 0x30], 0x3f
mov qword [rsp + 0x78], rcx
mov qword [rbp - 0x80], rbx
movdqu xmmword [rbp - 0x58], xmm0
lock inc dword [rbx + 8]
mov qword [rbp - 0x58], rcx
mov qword [rbp - 0x50], rbx
lea rdx, [rbp - 0x58]
lea rcx, [rbp + 0x1c0]
call fcn.18001a510
nop
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1800186af
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1800186af
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + htons]
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov r8b, 1
lea rdx, [rbp + 0x48]
lea rcx, [rbp + 0x1c0]
call fcn.180019870
nop
lea rcx, [rbp + 0x1c0]
call fcn.1800197c0
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 0xf
cmova rdx, qword [rbp - 0x78]
mov r8, qword [rbp - 0x68]
lea rcx, [rbp + 0xb0]
call fcn.180008160
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x18001873b
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180018736
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180018736
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180042f70
lea rcx, [rbp + 0xb8]
call fcn.180007690
test rax, rax
jne 0x18001876f
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0xb0]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0xb0], rax
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0xac], edx
lea rcx, [rbp + 0xb8]
call fcn.1800071b0
lea rcx, [rbp + 0xc0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x158]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
movzx edx, byte [rbp + 0x48]
lea rcx, [rbp + 0x50]
call fcn.1800272b0
nop
mov rdx, qword [rbp + 0x90]
cmp rdx, 7
jbe 0x18001881c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180018817
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180018817
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180042f70
mov qword [rbp + 0x88], rsi
mov qword [rbp + 0x90], 7
mov word [rbp + 0x78], si
mov rdx, qword [rbp + 0x70]
cmp rdx, 7
jbe 0x180018875
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180018870
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180018870
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180042f70
mov rcx, qword [rbp + 0x450]
xor rcx, rsp
call fcn.180042be0
lea r11, [rsp + 0x560]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret