Function at 0x140036500
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 rdi, rdx
mov r15, rcx
cmp rax, qword [rcx]
jne 0x14003653a
mov eax, 2
add rsp, 0x100
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
movdqa xmm0, xmmword [0x1400849a0]
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x140], r12
xor r12d, r12d
mov word [rbp - 0x71], r12w
movdqu xmmword [rbp - 0x61], xmm0
nop
inc r8
cmp word [rdx + r8*2], r12w
jne 0x140036560
lea rcx, [rbp - 0x71]
call fcn.140029ac0
lea r8, str..meta
lea rdx, [rbp - 0x71]
lea rcx, [rbp + 7]
call fcn.14001b9e0
mov rdx, qword [rbp - 0x59]
cmp rdx, 8
jb 0x1400365c7
mov rcx, qword [rbp - 0x71]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400365c2
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400368f3
call fcn.14003f840
mov rdx, rdi
lea rcx, [rbp - 0x71]
call fcn.14001df20
cmp qword [rax + 0x18], 8
jb 0x1400365dd
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 0x14003662b
mov rcx, qword [rbp - 0x71]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140036626
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400368f9
call fcn.14003f840
mov qword [rsp + 0x30], r12
mov r14d, 2
mov dword [rsp + 0x28], 0x80000080
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], r14d
mov edx, 0x40000000
mov qword [rsp + 0x138], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
inc rax
test rax, 0xfffffffffffffffe
jne 0x14003668b
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400366b8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14d, 6
jmp 0x140036856
mov r8d, dword [r15 + 8]
lea r9, [rbp + 0x67]
sub r8d, dword [r15]
mov rcx, rbx
mov rdx, qword [r15]
mov dword [rbp + 0x67], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400366c3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14d, 6
jmp 0x140036856
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x40], r12
xor edx, edx
mov qword [rsp + 0x48], r12
lea rcx, [rsp + 0x40]
mov qword [rbp - 0x79], r12
call fcn.1400188f0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140020040
test al, al
je 0x14003680e
mov rdi, qword [rsp + 0x48]
lea r8, [rsp + 0x40]
sub rdi, qword [rsp + 0x40]
lea rcx, [rsp + 0x40]
lea rbx, [rdi + 3]
and rbx, 0xfffffffffffffffc
lea rdx, [rbx + 0x20]
call fcn.1400188f0
mov rax, qword [rsp + 0x40]
lea r8, [rbp + 0x27]
movups xmm0, xmmword [0x140086de0]
movups xmmword [rax + rbx], xmm0
movups xmm1, xmmword [0x140086df0]
movups xmmword [rax + rbx + 0x10], xmm1
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
sub edx, ecx
call fcn.140014cc0
lea r8, [rsp + 0x40]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.1400188f0
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], r12
mov qword [rbp - 0x25], r12
mov qword [rbp - 0x1d], r12
mov qword [rbp - 0x15], r12
mov dword [rbp - 0xd], r12d
mov byte [rbp - 9], r12b
mov dword [rbp - 0x49], 0x4d524355
mov dword [rbp - 0x45], 0x41
movzx eax, byte [rsi]
mov byte [rsi + r8], al
lea rsi, [rsi + 1]
test al, al
jne 0x1400367b1
mov qword [rsp + 0x30], r12
xor r9d, r9d
mov dword [rsp + 0x28], 0x80000080
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
inc rax
test rax, 0xfffffffffffffffe
jne 0x1400368b4
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140036808
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14d, 6
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140036856
mov rdx, qword [rbp - 0x79]
mov rax, rcx
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140036844
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400368ed
call fcn.14003f840
xorps xmm0, xmm0
mov qword [rbp - 0x79], r12
movdqu xmmword [rsp + 0x40], xmm0
mov rdx, qword [rbp + 0x1f]
cmp rdx, 8
jb 0x140036892
mov rcx, qword [rbp + 7]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003688d
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400368ed
call fcn.14003f840
mov rbx, qword [rsp + 0x138]
mov eax, r14d
mov r12, qword [rsp + 0x140]
add rsp, 0x100
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
lea r9, [rbp + 0x67]
mov dword [rbp + 0x67], r12d
mov r8d, 0x41
mov qword [rsp + 0x20], r12
lea rdx, [rbp - 0x49]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400367ff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14d, r12d
jmp 0x14003680e
int3
int3
int3