Function at 0x1400376c0
Capabilities:
Create directory
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rsi, r8
mov r14, rdx
mov r15, rcx
mov rax, qword [rcx + 8]
cmp rax, qword [rcx]
jne 0x1400376fa
mov eax, 2
jmp 0x1400378af
xor r12d, r12d
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r12w
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], r12w
jne 0x140037720
lea rcx, [rsp + 0x58]
call fcn.140014b30
nop
lea r8, str..meta
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x30]
call fcn.14001dd30
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x14003778d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
cmp rdx, 0x1000
jb 0x140037788
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140037b17
mov rcx, r8
call fcn.14003f8c0
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r12w
mov rdx, r14
lea rcx, [rbp]
call fcn.14001f060
cmp qword [rax + 0x18], 8
jb 0x1400377b7
mov rax, qword [rax]
xor r8d, r8d
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov rdx, qword [rbp + 0x18]
cmp rdx, 8
jb 0x140037805
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
cmp rdx, 0x1000
jb 0x140037800
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140037b1d
mov rcx, r8
call fcn.14003f8c0
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80000080
mov edi, 2
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140037868
mov dword [rbp + 0x50], r12d
mov rdx, qword [r15]
mov r8, qword [r15 + 8]
sub r8, rdx
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
test eax, eax
jne 0x1400378cb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 6
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x1400378ad
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
cmp rdx, 0x1000
jb 0x1400378a8
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140037b11
mov rcx, r8
call fcn.14003f8c0
mov eax, edi
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r12
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.1400212f0
test al, al
je 0x140037abc
mov r9, qword [rsp + 0x48]
mov r14, r9
mov rdx, qword [rsp + 0x40]
sub r14, rdx
lea r15, [r14 + 3]
and r15, 0xfffffffffffffffc
lea rcx, [r15 + 0x20]
cmp rcx, r14
jae 0x140037921
lea rax, [rcx + rdx]
mov qword [rsp + 0x48], rax
jmp 0x140037964
jbe 0x140037964
mov rax, qword [rsp + 0x50]
sub rax, rdx
cmp rcx, rax
jbe 0x140037943
lea r8, [rbp + 0x50]
mov rdx, rcx
lea rcx, [rsp + 0x40]
call fcn.140019ec0
jmp 0x14003795f
sub rcx, r14
lea rbx, [r9 + rcx]
mov r8, rbx
sub r8, r9
xor edx, edx
mov rcx, r9
call fcn.140043b10
mov qword [rsp + 0x48], rbx
mov rdx, qword [rsp + 0x40]
movups xmm0, xmmword [0x14008a1a0]
movups xmmword [rdx + r15], xmm0
movups xmm1, xmmword [0x14008a1b0]
movups xmmword [rdx + r15 + 0x10], xmm1
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
sub rdx, rcx
lea r8, [rbp - 0x10]
call fcn.140015cc0
mov r9, qword [rsp + 0x48]
mov rcx, r9
mov rdx, qword [rsp + 0x40]
sub rcx, rdx
cmp r14, rcx
jae 0x1400379b3
lea rax, [rdx + r14]
mov qword [rsp + 0x48], rax
jmp 0x1400379f1
jbe 0x1400379f1
mov rax, qword [rsp + 0x50]
sub rax, rdx
cmp r14, rax
jbe 0x1400379d5
lea r8, [rbp + 0x50]
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.140019ec0
jmp 0x1400379f1
sub r14, rcx
lea rbx, [r9 + r14]
mov r8, rbx
sub r8, r9
xor edx, edx
mov rcx, r9
call fcn.140043b10
mov qword [rsp + 0x48], rbx
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
mov dword [rbp - 0x78], 0x202
mov qword [rbp - 0x64], r12
mov qword [rbp - 0x5c], r12
mov qword [rbp - 0x54], r12
mov qword [rbp - 0x4c], r12
mov dword [rbp - 0x44], r12d
mov byte [rbp - 0x40], 0
mov dword [rbp - 0x80], 0x4d524355
mov dword [rbp - 0x7c], 0x41
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rbp - 0x74], xmm0
lea r8, [rbp - 0x64]
sub r8, rsi
nop dword [rax + rax]
movzx eax, byte [rsi]
mov byte [rsi + r8], al
lea rsi, [rsi + 1]
test al, al
jne 0x140037a40
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80000080
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
inc rax
test rax, 0xfffffffffffffffe
je 0x140037ab7
mov dword [rbp + 0x50], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x50]
mov r8d, 0x41
lea rdx, [rbp - 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
test eax, eax
je 0x140037ab1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, r12d
jmp 0x140037abc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 6
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14003786d
mov rdx, qword [rsp + 0x50]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140037af3
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140037b0b
mov rcx, r8
call fcn.14003f8c0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r12
jmp 0x14003786d
call fcn.14004df0c
nop
call fcn.14004df0c
nop
call fcn.14004df0c
int3
call fcn.14004df0c
int3