Function at 0x180004800
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x990]
sub rsp, 0xa90
mov rax, qword [0x180115a80]
xor rax, rsp
mov qword [rbp + 0x980], rax
mov rbx, rdx
mov rsi, rcx
mov rdx, qword [rcx + 0x5f8]
test rdx, rdx
je 0x18000484f
mov r8, qword [rcx]
lea rcx, str._p____p
call fcn.180004050
mov eax, dword [0x180117e18]
inc eax
mov dword [0x180117e18], eax
cmp eax, 0x9c4
jl 0x180004877
lea rcx, [0x1800edb08]
call fcn.180004050
xor al, al
jmp 0x180004ad6
test rbx, rbx
je 0x18000489a
cmp byte [rbx], 0
je 0x18000489a
lea rcx, [rsi + 0x1d0]
mov r9d, 0x3b
mov r8, rbx
lea edx, [r9 + 1]
call fcn.1800ca908
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
lea rcx, [rsp + 0x70]
mov rdx, rsi
mov r8d, 0xa08
call fcn.1800e3e70
mov r8d, ebx
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.1800946a0
cmp qword [rax + 0x18], 7
jbe 0x1800048d1
mov rax, qword [rax]
lea rdi, [rsi + 0x20c]
mov r8, rax
mov edx, 0x1f4
mov rcx, rdi
call fcn.1800ca47c
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x18000492a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180004925
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180004b03
call fcn.1800babcc
movdqa xmm0, xmmword [0x1800edbc0]
movdqu xmmword [rsp + 0x40], xmm0
xor r14d, r14d
mov word [rsp + 0x30], r14w
movsxd rax, dword [0x180117e18]
imul rbx, rax, 0xac8
add rbx, qword [0x180117ec0]
lea rcx, [rsp + 0x70]
mov rdx, rsi
mov r8d, 0xa08
call fcn.1800e3e70
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.180007860
test al, al
jne 0x180004a80
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.180003910
nop
mov r8d, 0xfde9
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.180092600
nop
cmp qword [rax + 0x18], 0xf
jbe 0x1800049ac
mov rax, qword [rax]
mov rdx, rax
lea rcx, str.__s
call fcn.180004050
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x1800049f9
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800049f4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180004b09
call fcn.1800babcc
movdqa xmm0, xmmword [0x1800edbd0]
movdqu xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x180004a4e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180004a49
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180004afd
call fcn.1800babcc
movdqa xmm0, xmmword [0x1800edbc0]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], r14w
movsxd rax, dword [0x180117e18]
imul rcx, rax, 0xac8
add rcx, qword [0x180117ec0]
call fcn.180007640
xor al, al
jmp 0x180004ad6
mov dword [rsp + 0x70], 4
mov rax, qword [rsi]
mov qword [rsp + 0x78], rax
lea rcx, [rbp - 0x80]
sub rcx, rdi
nop word [rax + rax]
movzx eax, word [rdi]
mov word [rdi + rcx], ax
lea rdi, [rdi + 2]
test ax, ax
jne 0x180004aa0
mov qword [rsp + 0x20], r14
lea r9, [0x180117ed0]
mov r8d, 0x3f8
lea rdx, [rsp + 0x70]
mov rcx, qword [0x180115278]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov al, 1
mov rcx, qword [rbp + 0x980]
xor rcx, rsp
call fcn.1800bb0c0
lea r11, [rsp + 0xa90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.1800ca310
int3
call fcn.1800ca310
nop
call fcn.1800ca310
nop
int3