Function at 0x14001d500
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xe8
movaps xmmword [rsp + 0xd0], xmm6
mov dword [rsp + 0x5c], r8d
mov rdi, rcx
mov rcx, qword [rdx]
mov rax, qword [rdx + 8]
mov qword [rsp + 0xb8], rax
cmp rcx, rax
je 0x14001da1e
mov rax, qword [0x140288260]
xorps xmm6, xmm6
jmp 0x14001d56a
mov rcx, qword [rsp + 0xc0]
add rcx, 4
cmp rcx, qword [rsp + 0xb8]
je 0x14001da1e
mov qword [rsp + 0xc0], rcx
movsxd rcx, dword [rcx]
lea rcx, [rcx + rcx*2]
mov qword [rsp + 0xc8], rcx
mov rcx, qword [rax + rcx*8]
mov r14, qword [rcx + 0x98]
add rcx, 0x90
jmp 0x14001d5c7
test ebx, ebx
je 0x14001d7d0
mov r14, qword [r14 + 8]
mov rax, qword [0x140288260]
mov rcx, qword [rsp + 0xc8]
mov rcx, qword [rax + rcx*8]
mov edx, 0x90
add rcx, rdx
cmp r14, rcx
je 0x14001d550
mov r13, qword [r14 + 0x10]
test r13, r13
je 0x14001d5a8
mov rcx, r13
call sub.msvcrt.dll_wcslen
mov rbp, rax
movabs rax, 0x7fffffffffffffef
cmp rbp, rax
ja 0x14001da3a
cmp rbp, 0xa
ja 0x14001d610
lea eax, [rbp + rbp]
mov byte [rsp + 0x40], al
lea rbx, [rsp + 0x42]
jmp 0x14001d63f
mov r15, rbp
or r15, 7
inc r15
js 0x14001da44
lea rcx, [r15 + r15]
call fcn.14006fb50
mov rbx, rax
mov qword [rsp + 0x50], rax
or r15, 1
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], rbp
mov r8, rbp
add r8, rbp
mov rcx, rbx
mov rdx, r13
call sub.msvcrt.dll_memmove
mov word [rbx + rbp*2], 0
lea rcx, [rsp + 0x40]
lea rdx, [0x1401f55f2]
call fcn.140072e90
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x70], rcx
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x60], xmm0
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
lea rcx, [rsp + 0x60]
lea rdx, str.ReadMe.txt
call fcn.140072e90
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0xb0], rcx
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0xa0], xmm0
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
mov rbp, qword [rdi]
movzx r13d, byte [rbp]
test r13b, 1
je 0x14001d6d0
mov r13, qword [rbp + 8]
mov rbp, qword [rbp + 0x10]
jmp 0x14001d6d6
inc rbp
shr r13, 1
test byte [rsp + 0xa0], 1
lea rcx, [rsp + 0xa2]
je 0x14001d6f0
mov rcx, qword [rsp + 0xb0]
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001d7c0
mov dword [rsp + 0x3c], 0
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov rdx, rbp
mov r8d, r13d
lea r9, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.DLL_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_FlushFileBuffers]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ebx, dword [rsp + 0x3c]
test byte [rsp + 0xa0], 1
je 0x14001d779
mov rcx, qword [rsp + 0xb0]
call fcn.14006fbd0
test byte [rsp + 0x60], 1
jne 0x14001d790
test byte [rsp + 0x40], 1
je 0x14001d5a0
jmp 0x14001d7a5
mov rcx, qword [rsp + 0x70]
call fcn.14006fbd0
test byte [rsp + 0x40], 1
je 0x14001d5a0
mov rcx, qword [rsp + 0x50]
call fcn.14006fbd0
jmp 0x14001d5a0
xor ebx, ebx
test byte [rsp + 0xa0], 1
jne 0x14001d76c
jmp 0x14001d779
mov rax, qword [r14 + 0x18]
test rax, rax
je 0x14001d5a8
mov r12, qword [rax]
mov r15, qword [rax + 8]
cmp r15, r12
je 0x14001d5a8
add r12, 8
nop word cs:[rax + rax]
mov rbx, qword [r12 - 8]
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov r13, qword [r14 + 0x10]
mov rcx, r13
call sub.msvcrt.dll_wcslen
mov rsi, rax
movabs rax, 0x7fffffffffffffef
cmp rsi, rax
ja 0x14001da3a
cmp rsi, 0xa
ja 0x14001d850
lea eax, [rsi + rsi]
mov byte [rsp + 0x40], al
lea rbx, [rsp + 0x42]
jmp 0x14001d881
mov rbp, rsi
or rbp, 7
inc rbp
js 0x14001da44
mov rcx, rbp
add rcx, rbp
call fcn.14006fb50
mov rbx, rax
mov qword [rsp + 0x50], rax
or rbp, 1
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov r8, rsi
add r8, rsi
mov rcx, rbx
mov rdx, r13
call sub.msvcrt.dll_memmove
mov word [rbx + rsi*2], 0
lea rcx, [rsp + 0x40]
lea rdx, [0x1401f55f2]
call fcn.140072e90
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x70], rcx
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x60], xmm0
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
lea rcx, [rsp + 0x60]
lea rdx, str.ReadMe.txt
call fcn.140072e90
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x90], rcx
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x80], xmm0
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
mov rbp, qword [rdi]
movzx r13d, byte [rbp]
test r13b, 1
je 0x14001d910
mov r13, qword [rbp + 8]
mov rbp, qword [rbp + 0x10]
jmp 0x14001d916
inc rbp
shr r13, 1
test byte [rsp + 0x80], 1
lea rcx, [rsp + 0x82]
je 0x14001d930
mov rcx, qword [rsp + 0x90]
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001da10
mov dword [rsp + 0x3c], 0
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov rdx, rbp
mov r8d, r13d
lea r9, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.DLL_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_FlushFileBuffers]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ebx, dword [rsp + 0x3c]
test byte [rsp + 0x80], 1
je 0x14001d9b9
mov rcx, qword [rsp + 0x90]
call fcn.14006fbd0
test byte [rsp + 0x60], 1
jne 0x14001d9d0
test byte [rsp + 0x40], 1
jne 0x14001d9e1
test ebx, ebx
je 0x14001d9f3
jmp 0x14001d5a8
mov rcx, qword [rsp + 0x70]
call fcn.14006fbd0
test byte [rsp + 0x40], 1
je 0x14001d9c7
mov rcx, qword [rsp + 0x50]
call fcn.14006fbd0
test ebx, ebx
jne 0x14001d5a8
lea rax, [r12 + 8]
cmp r12, r15
mov r12, rax
jne 0x14001d800
jmp 0x14001d5a8
xor ebx, ebx
test byte [rsp + 0x80], 1
jne 0x14001d9ac
jmp 0x14001d9b9
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rsp + 0x40]
call fcn.140002ec0
call fcn.140002f60
mov rsi, rax
jmp 0x14001da92
test byte [rsp + 0x60], 1
jne 0x14001daa8
test byte [rsp + 0x40], 1
jne 0x14001dab9
mov rcx, rsi
call fcn.14009a110
mov rcx, qword [rsp + 0x70]
call fcn.14006fbd0
test byte [rsp + 0x40], 1
je 0x14001daa0
mov rcx, qword [rsp + 0x50]
call fcn.14006fbd0
mov rcx, rsi
call fcn.14009a110
int3