Function at 0x1400039b0
Capabilities:
Create directory
Get common file path
Get hostname
Get session user name
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0xa10]
sub rsp, 0xb10
mov rax, qword [0x14007e018]
xor rax, rsp
mov qword [rbp + 0xa00], rax
xor edi, edi
mov dword [rbp + 0x80], edi
mov qword [rbp + 0xc8], rdi
mov qword [rbp + 0xd8], rdi
mov qword [rbp + 0xe0], 7
mov word [rbp + 0xc8], di
xor edx, edx
mov r8d, 0xe8
lea rcx, [rbp - 0x70]
call fcn.140037260
lea rcx, [rbp - 0x70]
call fcn.140007460
nop
mov qword [rbp + 0x88], rdi
mov qword [rbp + 0x98], rdi
mov qword [rbp + 0xa0], 7
mov word [rbp + 0x88], di
mov qword [rbp + 0xa8], rdi
mov qword [rbp + 0xb8], rdi
mov qword [rbp + 0xc0], 0xf
mov byte [rbp + 0xa8], dil
mov ebx, 4
mov dword [rbp + 0x80], ebx
lea r8, [rbp + 0x80]
lea rdx, [rbp + 0x3d0]
lea ecx, [rdi + 3]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
lea r8, [rbp + 0x80]
lea rdx, [rbp + 0x3d0]
lea ecx, [rdi + 3]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x140003aa4
mov word [rbp + 0x3e0], di
jmp 0x140003abc
lea r8, [0x140074758]
mov edx, 8
lea rcx, [rbp + 0x3d0]
call fcn.1400406bc
mov dword [rbp + 0x80], ebx
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0x5e0]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x140003ae3
mov word [rbp + 0x5f0], di
jmp 0x140003afb
lea r8, str.kb117
mov edx, 8
lea rcx, [rbp + 0x5e0]
call fcn.1400406bc
lea rdx, [rbp + 0x1c0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
jbe 0x140003b2e
lea r8, [0x140074778]
mov edx, 0x104
lea rcx, [rbp + 0x1c0]
call fcn.1400406bc
lea r8, [rbp + 0x3d0]
mov edx, 0x104
lea rcx, [rbp + 0x1c0]
call fcn.140040724
xor edx, edx
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea r8, [0x140074780]
mov edx, 0x104
lea rcx, [rbp + 0x1c0]
call fcn.140040724
lea r8, [rbp + 0x5e0]
mov edx, 0x104
lea rcx, [rbp + 0x1c0]
call fcn.140040724
lea r8, str..log
mov edx, 0x104
lea rcx, [rbp + 0x1c0]
call fcn.140040724
lea r8, [rbp + 0x1c0]
mov edx, 0x104
lea rcx, [0x1400869e0]
call fcn.1400406bc
movups xmm0, xmmword [str.DO_NOT_MODIFY_ANYTHING__SUBMIT_THIS_LOG_TO_COMMANDER._n]
movups xmmword [rbp + 0x180], xmm0
movups xmm1, xmmword [0x1400747a8]
movups xmmword [rbp + 0x190], xmm1
movups xmm0, xmmword [0x1400747b8]
movups xmmword [rbp + 0x1a0], xmm0
mov eax, dword [0x1400747c8]
mov dword [rbp + 0x1b0], eax
movzx eax, word [0x1400747cc]
mov word [rbp + 0x1b4], ax
movzx eax, byte [0x1400747ce]
mov byte [rbp + 0x1b6], al
lea r8, [0x1400747d0]
lea rdx, [rbp + 0x1c0]
lea rcx, [rbp - 0x80]
call fcn.14003b6fc
lea rax, [rbp + 0x180]
mov rdx, 0xffffffffffffffff
nop dword [rax + rax]
inc rdx
cmp byte [rax + rdx], 0
jne 0x140003c30
mov r9, qword [rbp - 0x80]
mov r8d, 1
lea rcx, [rbp + 0x180]
call fcn.14003f2f4
mov rcx, qword [rbp - 0x80]
call fcn.140040448
lea rcx, [rbp + 0xe8]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea rdx, [rbp + 0xe8]
lea rcx, [rsp + 0x20]
call fcn.140003610
lea rcx, [rbp + 0xc8]
cmp rcx, rax
je 0x140003ca6
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xc8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xd8], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140003ce8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003ce3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000425f
call fcn.140034fa8
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x70]
add rcx, rax
cmp qword [rcx + 0x48], 0
cmovne ebx, edi
xor r8d, r8d
mov edx, ebx
call fcn.140003460
lea rdx, str.Create_logfile_at:
lea rcx, [rbp - 0x70]
call fcn.14000b4c0
mov rcx, rax
lea rdx, [rbp + 0x1c0]
call fcn.14000b4c0
mov rcx, rax
lea rdx, [0x1400747d8]
call fcn.14000b4c0
mov dword [rbp + 0x84], 0x104
lea r8, [rbp + 0x84]
lea rdx, [rbp + 0x7f0]
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
lea rdx, [rbp + 0x7f0]
lea rcx, [rbp - 0x70]
call fcn.14000b4c0
mov rcx, rax
lea rdx, [0x140074808]
call fcn.14000b4c0
lea rdx, [rbp + 0x84]
lea rcx, [rbp + 0x7f0]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea rdx, [rbp + 0x7f0]
lea rcx, [rbp - 0x70]
call fcn.14000b4c0
mov rcx, rax
call fcn.14000b730
mov qword [rbp + 0x98], rdi
lea rax, [rbp + 0x88]
cmp qword [rbp + 0xa0], 8
cmovae rax, qword [rbp + 0x88]
mov word [rax], di
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], di
mov dword [rbp + 0x80], 2
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rax
mov rcx, qword [rbp + 8]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140003e24
mov rax, qword [rbp - 0x28]
mov rdx, qword [rax]
test rdx, rdx
je 0x140003e24
mov rax, qword [rbp - 0x48]
mov r9, qword [rax]
cmp rdx, qword [rbp]
cmovb rdx, qword [rbp]
sub rdx, r9
jmp 0x140003e4c
test cl, 4
jne 0x140003e83
mov rax, qword [rbp - 0x30]
mov rcx, qword [rax]
test rcx, rcx
je 0x140003e83
mov rax, qword [rbp - 0x50]
mov r9, qword [rax]
mov rax, qword [rbp - 0x18]
movsxd rdx, dword [rax]
add rdx, rdx
sub rdx, r9
add rdx, rcx
mov rax, r9
sar rdx, 1
test rax, rax
je 0x140003e83
lea rcx, [rsp + 0x20]
cmp rdx, 7
ja 0x140003e7d
mov qword [rsp + 0x30], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
call fcn.140036bb0
mov word [rsp + rbx + 0x20], di
jmp 0x140003e83
call fcn.14000bc20
nop
lea r8, str.___CreateLogFile__
lea rdx, [rbp + 0xc8]
lea rcx, [rsp + 0x40]
call fcn.14000b7c0
nop
lea r9, [rsp + 0x20]
mov r8, rax
lea rcx, [rsp + 0x60]
call fcn.14000ccd0
mov rdx, qword [rbp + 0xa0]
cmp rdx, 8
jb 0x140003ef4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003eef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004265
call fcn.140034fa8
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rbp + 0x88], xmm0
movups xmm1, xmmword [rsp + 0x70]
movups xmmword [rbp + 0x98], xmm1
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140003f4e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003f49
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000426b
call fcn.140034fa8
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], di
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140003fa3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003f9e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004271
call fcn.140034fa8
mov qword [rbp + 0xb8], rdi
lea rax, [rbp + 0xa8]
cmp qword [rbp + 0xc0], 0x10
cmovae rax, qword [rbp + 0xa8]
mov byte [rax], 0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x100], xmm0
movups xmmword [rbp + 0x110], xmm0
movups xmmword [rbp + 0x120], xmm0
movups xmmword [rbp + 0x130], xmm0
movups xmmword [rbp + 0x140], xmm0
movups xmmword [rbp + 0x150], xmm0
movups xmmword [rbp + 0x160], xmm0
mov qword [rbp + 0x170], rax
lea rcx, [rbp + 0x100]
call fcn.140007f20
nop
lea r8, [rbp + 0x88]
cmp qword [rbp + 0xa0], 8
cmovae r8, qword [rbp + 0x88]
mov rax, qword [rbp + 0x98]
lea r9, [r8 + rax*2]
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x100]
call fcn.1400095b0
nop
lea rcx, [rbp + 0x100]
call fcn.140007e30
mov rdx, qword [rbp + 0xc0]
cmp rdx, 0x10
jb 0x14000408f
inc rdx
mov rcx, qword [rbp + 0xa8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000408a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004277
call fcn.140034fa8
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rbp + 0xa8], xmm0
movups xmm1, xmmword [rsp + 0x70]
movups xmmword [rbp + 0xb8], xmm1
lea rdx, [rbp + 0xa8]
movq rcx, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 0x10
cmovae rdx, rcx
movd ecx, xmm1
call fcn.140003590
nop
mov rdx, qword [rbp + 0xc0]
cmp rdx, 0x10
jb 0x140004114
inc rdx
mov rcx, qword [rbp + 0xa8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000410f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000427d
call fcn.140034fa8
mov qword [rbp + 0xb8], rdi
mov qword [rbp + 0xc0], 0xf
mov byte [rbp + 0xa8], 0
mov rdx, qword [rbp + 0xa0]
cmp rdx, 8
jb 0x140004173
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000416e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004283
call fcn.140034fa8
mov qword [rbp + 0x98], rdi
mov qword [rbp + 0xa0], 7
mov word [rbp + 0x88], di
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + rcx - 0x70], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x68]
call fcn.140007110
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + rcx - 0x70], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx - 0x74], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x18], rax
lea rcx, [rbp + 0x18]
call fcn.140014998
nop
mov rdx, qword [rbp + 0xe0]
cmp rdx, 8
jb 0x140004235
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xc8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004230
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004259
call fcn.140034fa8
mov rcx, qword [rbp + 0xa00]
xor rcx, rsp
call fcn.140034cb0
lea r11, [rsp + 0xb10]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
call fcn.140041560
nop
call fcn.140041560
nop
call fcn.140041560
nop
call fcn.140041560
nop
call fcn.140041560
int3
call fcn.140041560
nop
call fcn.140041560
nop
call fcn.140041560
int3