Function at 0x14001bc70
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 0x14001c18e
mov rax, qword [0x1402da2e0]
xorps xmm6, xmm6
jmp 0x14001bcda
mov rcx, qword [rsp + 0xc0]
add rcx, 4
cmp rcx, qword [rsp + 0xb8]
je 0x14001c18e
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 0x14001bd37
test ebx, ebx
je 0x14001bf40
mov r14, qword [r14 + 8]
mov rax, qword [0x1402da2e0]
mov rcx, qword [rsp + 0xc8]
mov rcx, qword [rax + rcx*8]
mov edx, 0x90
add rcx, rdx
cmp r14, rcx
je 0x14001bcc0
mov r13, qword [r14 + 0x10]
test r13, r13
je 0x14001bd18
mov rcx, r13
call sub.msvcrt.dll_wcslen
mov rbp, rax
movabs rax, 0x7fffffffffffffef
cmp rbp, rax
ja 0x14001c1aa
cmp rbp, 0xa
ja 0x14001bd80
lea eax, [rbp + rbp]
mov byte [rsp + 0x40], al
lea rbx, [rsp + 0x42]
jmp 0x14001bdaf
mov r15, rbp
or r15, 7
inc r15
js 0x14001c1b4
lea rcx, [r15 + r15]
call fcn.1400731c0
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, [0x140259684]
call fcn.140076360
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.140076360
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 0x14001be40
mov r13, qword [rbp + 8]
mov rbp, qword [rbp + 0x10]
jmp 0x14001be46
inc rbp
shr r13, 1
test byte [rsp + 0xa0], 1
lea rcx, [rsp + 0xa2]
je 0x14001be60
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 0x14001bf30
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 0x14001bee9
mov rcx, qword [rsp + 0xb0]
call fcn.140073240
test byte [rsp + 0x60], 1
jne 0x14001bf00
test byte [rsp + 0x40], 1
je 0x14001bd10
jmp 0x14001bf15
mov rcx, qword [rsp + 0x70]
call fcn.140073240
test byte [rsp + 0x40], 1
je 0x14001bd10
mov rcx, qword [rsp + 0x50]
call fcn.140073240
jmp 0x14001bd10
xor ebx, ebx
test byte [rsp + 0xa0], 1
jne 0x14001bedc
jmp 0x14001bee9
mov rax, qword [r14 + 0x18]
test rax, rax
je 0x14001bd18
mov r12, qword [rax]
mov r15, qword [rax + 8]
cmp r15, r12
je 0x14001bd18
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 0x14001c1aa
cmp rsi, 0xa
ja 0x14001bfc0
lea eax, [rsi + rsi]
mov byte [rsp + 0x40], al
lea rbx, [rsp + 0x42]
jmp 0x14001bff1
mov rbp, rsi
or rbp, 7
inc rbp
js 0x14001c1b4
mov rcx, rbp
add rcx, rbp
call fcn.1400731c0
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, [0x140259684]
call fcn.140076360
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.140076360
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 0x14001c080
mov r13, qword [rbp + 8]
mov rbp, qword [rbp + 0x10]
jmp 0x14001c086
inc rbp
shr r13, 1
test byte [rsp + 0x80], 1
lea rcx, [rsp + 0x82]
je 0x14001c0a0
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 0x14001c180
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 0x14001c129
mov rcx, qword [rsp + 0x90]
call fcn.140073240
test byte [rsp + 0x60], 1
jne 0x14001c140
test byte [rsp + 0x40], 1
jne 0x14001c151
test ebx, ebx
je 0x14001c163
jmp 0x14001bd18
mov rcx, qword [rsp + 0x70]
call fcn.140073240
test byte [rsp + 0x40], 1
je 0x14001c137
mov rcx, qword [rsp + 0x50]
call fcn.140073240
test ebx, ebx
jne 0x14001bd18
lea rax, [r12 + 8]
cmp r12, r15
mov r12, rax
jne 0x14001bf70
jmp 0x14001bd18
xor ebx, ebx
test byte [rsp + 0x80], 1
jne 0x14001c11c
jmp 0x14001c129
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.140002b00
call fcn.140002ba0
mov rsi, rax
jmp 0x14001c202
test byte [rsp + 0x60], 1
jne 0x14001c218
test byte [rsp + 0x40], 1
jne 0x14001c229
mov rcx, rsi
call fcn.14009d370
mov rcx, qword [rsp + 0x70]
call fcn.140073240
test byte [rsp + 0x40], 1
je 0x14001c210
mov rcx, qword [rsp + 0x50]
call fcn.140073240
mov rcx, rsi
call fcn.14009d370
int3