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

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x100
mov rax, qword [rcx + 8]
mov rsi, r8
mov r14, rdx
mov r15, rcx
cmp rax, qword [rcx]
jne 0x14003630a
mov eax, 2
add rsp, 0x100
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x148], r13
mov r8, 0xffffffffffffffff
xor r13d, r13d
mov qword [rbp - 0x59], 7
mov qword [rbp - 0x61], r13
mov word [rbp - 0x71], r13w
nop dword [rax]
inc r8
cmp word [rdx + r8*2], r13w
jne 0x140036330
lea rcx, [rbp - 0x71]
call fcn.140014450
lea r8, [0x140087418]
lea rdx, [rbp - 0x71]
lea rcx, [rbp + 7]
call fcn.14001cd60
mov rdx, qword [rbp - 0x59]
cmp rdx, 8
jb 0x140036397
mov rcx, qword [rbp - 0x71]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140036392
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140036725
mov rcx, r8
call fcn.14003e23c
mov rdx, r14
lea rcx, [rbp - 0x71]
call fcn.14001e220
cmp qword [rax + 0x18], 8
jb 0x1400363ad
mov rax, qword [rax]
xor r8d, r8d
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov rdx, qword [rbp - 0x59]
cmp rdx, 8
jb 0x1400363fb
mov rcx, qword [rbp - 0x71]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1400363f6
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140036719
mov rcx, r8
call fcn.14003e23c
mov qword [rsp + 0x30], r13
mov edi, 2
mov dword [rsp + 0x28], 0x80000080
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], edi
mov edx, 0x40000000
mov qword [rsp + 0x138], rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140036466
mov r8d, dword [r15 + 8]
lea r9, [rbp + 0x67]
sub r8d, dword [r15]
mov rcx, rbx
mov rdx, qword [r15]
mov dword [rbp + 0x67], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
test eax, eax
jne 0x1400364cc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 6
mov rdx, qword [rbp + 0x1f]
cmp rdx, 8
jb 0x1400364ab
mov rcx, qword [rbp + 7]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1400364a6
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14003671f
mov rcx, r8
call fcn.14003e23c
mov rbx, qword [rsp + 0x138]
mov eax, edi
mov r13, qword [rsp + 0x148]
add rsp, 0x100
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
mov qword [rbp - 0x79], r13
lea rdx, [rsp + 0x40]
mov rcx, r14
movdqu xmmword [rsp + 0x40], xmm0
call fcn.140020870
test al, al
je 0x1400366cc
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x140], r12
mov r12, qword [rsp + 0x48]
mov rbx, r12
mov byte [rbp + 0x67], r13b
sub rbx, rcx
lea r15, [rbx + 3]
and r15, 0xfffffffffffffffc
lea r14, [r15 + 0x20]
cmp r14, rbx
jae 0x140036527
lea rax, [r14 + rcx]
jmp 0x140036566
jbe 0x14003656b
mov rax, qword [rbp - 0x79]
sub rax, rcx
cmp r14, rax
jbe 0x14003654d
lea r8, [rbp + 0x67]
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.140019a60
mov rcx, qword [rsp + 0x40]
jmp 0x14003656b
sub r14, rbx
xor edx, edx
mov r8, r14
mov rcx, r12
call fcn.140042410
mov rcx, qword [rsp + 0x40]
lea rax, [r12 + r14]
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [0x1400873d0]
lea r8, [rbp + 0x27]
movups xmmword [rcx + r15], xmm0
movups xmm1, xmmword [0x1400873e0]
movups xmmword [rcx + r15 + 0x10], xmm1
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
sub edx, ecx
call fcn.1400157e0
mov r14, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rcx, r14
mov r12, qword [rsp + 0x140]
sub rcx, rdx
mov byte [rbp + 0x67], r13b
cmp rbx, rcx
jae 0x1400365bf
lea rax, [rdx + rbx]
jmp 0x1400365f4
jbe 0x1400365f9
mov rax, qword [rbp - 0x79]
sub rax, rdx
cmp rbx, rax
jbe 0x1400365e0
lea r8, [rbp + 0x67]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140019a60
jmp 0x1400365f9
sub rbx, rcx
xor edx, edx
mov r8, rbx
mov rcx, r14
call fcn.140042410
lea rax, [r14 + rbx]
mov qword [rsp + 0x48], rax
cmp qword [rbp + 0x1f], 8
lea rcx, [rbp + 7]
movups xmm0, xmmword [rbp + 0x27]
cmovae rcx, qword [rbp + 7]
lea r8, [rbp - 0x2d]
sub r8, rsi
mov dword [rbp - 0x41], 0x202
movups xmmword [rbp - 0x3d], xmm0
mov qword [rbp - 0x2d], r13
mov qword [rbp - 0x25], r13
mov qword [rbp - 0x1d], r13
mov qword [rbp - 0x15], r13
mov dword [rbp - 0xd], r13d
mov byte [rbp - 9], r13b
mov dword [rbp - 0x49], 0x4d524355
mov dword [rbp - 0x45], 0x41
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rsi]
mov byte [rsi + r8], al
lea rsi, [rsi + 1]
test al, al
jne 0x140036650
mov qword [rsp + 0x30], r13
xor r9d, r9d
mov dword [rsp + 0x28], 0x80000080
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
inc rax
test rax, 0xfffffffffffffffe
je 0x1400366c7
lea r9, [rbp + 0x67]
mov dword [rbp + 0x67], r13d
mov r8d, 0x41
mov qword [rsp + 0x20], r13
lea rdx, [rbp - 0x49]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
test eax, eax
je 0x1400366c1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, r13d
jmp 0x1400366cc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 6
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14003646b
mov rdx, qword [rbp - 0x79]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140036702
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14003671f
mov rcx, r8
call fcn.14003e23c
xorps xmm0, xmm0
mov qword [rbp - 0x79], r13
movdqu xmmword [rsp + 0x40], xmm0
jmp 0x14003646b
call fcn.14004bd18
int3
call fcn.14004bd18
int3
call fcn.14004bd18
int3