Function at 0x140036450
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 0x14003648a
mov eax, 2
add rsp, 0x100
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
movdqa xmm0, xmmword [0x1400839d0]
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 0x1400364b0
lea rcx, [rbp - 0x71]
call fcn.140029c00
lea r8, str..meta
lea rdx, [rbp - 0x71]
lea rcx, [rbp + 7]
call fcn.14001ba90
mov rdx, qword [rbp - 0x59]
cmp rdx, 8
jb 0x140036517
mov rcx, qword [rbp - 0x71]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140036512
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140036843
call fcn.14003e020
mov rdx, rdi
lea rcx, [rbp - 0x71]
call fcn.14001e070
cmp qword [rax + 0x18], 8
jb 0x14003652d
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 0x14003657b
mov rcx, qword [rbp - 0x71]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140036576
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140036849
call fcn.14003e020
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 0x1400365db
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140036608
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14d, 6
jmp 0x1400367a6
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 0x140036613
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14d, 6
jmp 0x1400367a6
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.140018990
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1400201a0
test al, al
je 0x14003675e
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.140018990
mov rax, qword [rsp + 0x40]
lea r8, [rbp + 0x27]
movups xmm0, xmmword [0x140085e10]
movups xmmword [rax + rbx], xmm0
movups xmm1, xmmword [0x140085e20]
movups xmmword [rax + rbx + 0x10], xmm1
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
sub edx, ecx
call fcn.140014d60
lea r8, [rsp + 0x40]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140018990
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 0x140036701
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 0x140036804
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140036758
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14d, 6
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400367a6
mov rdx, qword [rbp - 0x79]
mov rax, rcx
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140036794
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003683d
call fcn.14003e020
xorps xmm0, xmm0
mov qword [rbp - 0x79], r12
movdqu xmmword [rsp + 0x40], xmm0
mov rdx, qword [rbp + 0x1f]
cmp rdx, 8
jb 0x1400367e2
mov rcx, qword [rbp + 7]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400367dd
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003683d
call fcn.14003e020
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 0x14003674f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14d, r12d
jmp 0x14003675e
call fcn.140049988
int3
call fcn.140049988
int3
call fcn.140049988
int3