Function at 0x180001fc0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x180025020]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rdi, rdx
mov r14, rcx
mov qword [rbp - 9], rcx
mov qword [rbp - 1], rdx
cmp qword [rdx + 0x18], 0x10
jb 0x18000200d
mov rbx, qword [rdx]
mov rsi, rbx
add rsi, qword [rdx + 0x10]
jmp 0x180002017
mov rsi, qword [rdx + 0x10]
add rsi, rdi
mov rbx, rdi
xor r12d, r12d
mov qword [rbp + 7], r12
mov ecx, r12d
mov qword [rbp + 0x17], rcx
mov r8d, 7
mov qword [rbp + 0x1f], r8
mov rdx, rsi
sub rdx, rbx
cmp rdx, 8
jb 0x18000204f
lea rcx, [rbp + 7]
call fcn.180003280
mov ecx, r12d
mov qword [rbp + 0x17], rcx
mov r8, qword [rbp + 0x1f]
lea rax, [rbp + 7]
mov qword [rbp - 0x19], rax
cmp rbx, rsi
je 0x1800020a6
nop dword [rax]
movsx r9d, byte [rbx]
cmp rcx, r8
jae 0x18000208b
lea rax, [rcx + 1]
mov qword [rbp + 0x17], rax
lea rax, [rbp + 7]
cmp r8, 8
cmovae rax, qword [rbp + 7]
mov word [rax + rcx*2], r9w
mov word [rax + rcx*2 + 2], r12w
jmp 0x180002094
lea rcx, [rbp + 7]
call fcn.1800034d0
inc rbx
mov r8, qword [rbp + 0x1f]
cmp rbx, rsi
je 0x1800020a6
mov rcx, qword [rbp + 0x17]
jmp 0x180002060
lea rcx, [rbp + 7]
cmp r8, 8
cmovae rcx, qword [rbp + 7]
call fcn.18000d634
mov rbx, r14
cmp qword [r14 + 0x18], 0x10
jb 0x1800020c5
mov rbx, qword [r14]
mov esi, dword [r14 + 0x10]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
lea edx, [r9 + 4]
lea r8d, [r9 + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x18000220b
mov rdx, qword [rbp + 0x1f]
cmp rdx, 8
jb 0x18000213f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000213a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180002289
call fcn.180007fd0
mov word [rbp + 7], r12w
mov qword [rbp + 0x1f], 7
mov qword [rbp + 0x17], r12
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x18000218a
inc rdx
cmp rdx, 0x1000
mov rcx, qword [r14]
jb 0x180002185
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180002283
mov rcx, r8
call fcn.180007fd0
mov qword [r14 + 0x10], r12
mov qword [r14 + 0x18], 0xf
mov byte [r14], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1800021d4
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1800021cf
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18000228f
mov rcx, r8
call fcn.180007fd0
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.180007fb0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
test esi, esi
je 0x180002236
nop
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x11]
mov r8d, esi
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180002236
mov ecx, dword [rbp - 0x11]
add rbx, rcx
sub esi, ecx
jne 0x180002210
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp + 0x1f]
cmp rdx, 8
jb 0x18000213f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000213a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180002289
jmp 0x18000213a
call fcn.18000cbcc
nop
call fcn.18000cbcc
nop
call fcn.18000cbcc
int3