Function at 0x18005a050
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x110]
sub rsp, 0x210
mov rax, qword [0x18017c040]
xor rax, rsp
mov qword [rbp + 0x100], rax
xor r15d, r15d
mov ebx, edx
mov rdi, rcx
movabs rsi, 0x216ff70400bc85c6
movabs r14, 0xe996383116b7a585
test dl, 8
je 0x18005a18f
movabs r9, 0xc7e256547fdbc6de
lea rdx, [rbp + 0x20]
mov qword [rsp + 0x30], r9
lea rcx, [rbp + 0x20]
mov rax, qword [rsp + 0x30]
movabs r10, 0x216ff7245dd0e9a2
mov qword [rbp + 0x20], rax
mov r8d, edx
mov qword [rsp + 0x30], r10
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x28], rax
mov qword [rsp + 0x30], r14
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], rsi
mov rax, qword [rsp + 0x30]
movdqa xmm0, xmmword [rbp + 0x20]
mov qword [rsp + 0x48], rax
xorps xmm0, xmmword [rsp + 0x40]
movq rax, xmm0
movdqa xmmword [rbp + 0x20], xmm0
test al, al
je 0x18005a12b
nop word [rax + rax]
inc rcx
mov r8, rcx
cmp byte [rcx], r15b
jne 0x18005a120
mov qword [rsp + 0x30], r9
sub r8d, edx
mov rax, qword [rsp + 0x30]
lea rdx, [rbp + 0x90]
mov qword [rbp + 0x90], rax
mov qword [rsp + 0x30], r10
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x98], rax
mov qword [rsp + 0x30], r14
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x30], rsi
mov rax, qword [rsp + 0x30]
movdqa xmm0, xmmword [rbp + 0x90]
mov qword [rsp + 0x58], rax
xorps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rbp + 0x90], xmm0
jmp 0x18005a27a
test bl, 4
je 0x18005a28b
movabs r9, 0x9ab14b547bd6c2de
lea rdx, [rbp + 0x30]
mov qword [rsp + 0x30], r9
lea rcx, [rbp + 0x30]
mov rax, qword [rsp + 0x30]
movabs r10, 0x216fd7596cd0e1e6
mov qword [rbp + 0x30], rax
mov r8d, edx
mov qword [rsp + 0x30], r10
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x38], rax
mov qword [rsp + 0x30], r14
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x30], rsi
mov rax, qword [rsp + 0x30]
movdqa xmm0, xmmword [rbp + 0x30]
mov qword [rsp + 0x68], rax
xorps xmm0, xmmword [rsp + 0x60]
movq rax, xmm0
movdqa xmmword [rbp + 0x30], xmm0
test al, al
je 0x18005a21b
nop dword [rax]
inc rcx
mov r8, rcx
cmp byte [rcx], r15b
jne 0x18005a210
mov qword [rsp + 0x30], r9
sub r8d, edx
mov rax, qword [rsp + 0x30]
lea rdx, [rbp + 0xa0]
mov qword [rbp + 0xa0], rax
mov qword [rsp + 0x30], r10
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0xa8], rax
mov qword [rsp + 0x30], r14
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x30], rsi
mov rax, qword [rsp + 0x30]
movdqa xmm0, xmmword [rbp + 0xa0]
mov qword [rsp + 0x78], rax
xorps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rbp + 0xa0], xmm0
xor r9d, r9d
mov qword [rsp + 0x20], r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test bl, 0x20
je 0x18005a37a
movabs r9, 0x9df55d4579c5d5de
lea rdx, [rbp + 0x40]
mov qword [rsp + 0x30], r9
lea rcx, [rbp + 0x40]
mov rax, qword [rsp + 0x30]
movabs r10, 0x216ff70420e1e1a3
mov qword [rbp + 0x40], rax
mov r8d, edx
mov qword [rsp + 0x30], r10
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x48], rax
mov qword [rsp + 0x30], r14
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x80], rax
mov qword [rsp + 0x30], rsi
mov rax, qword [rsp + 0x30]
movdqa xmm0, xmmword [rbp + 0x40]
mov qword [rbp - 0x78], rax
xorps xmm0, xmmword [rbp - 0x80]
movq rax, xmm0
movdqa xmmword [rbp + 0x40], xmm0
test al, al
je 0x18005a30d
inc rcx
mov r8, rcx
cmp byte [rcx], r15b
jne 0x18005a302
mov qword [rsp + 0x30], r9
sub r8d, edx
mov rax, qword [rsp + 0x30]
lea rdx, [rbp + 0xb0]
mov qword [rbp + 0xb0], rax
xor r9d, r9d
mov qword [rsp + 0x30], r10
mov rcx, rdi
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0xb8], rax
mov qword [rsp + 0x30], r14
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x70], rax
mov qword [rsp + 0x30], rsi
mov rax, qword [rsp + 0x30]
movdqa xmm0, xmmword [rbp + 0xb0]
mov qword [rbp - 0x68], rax
xorps xmm0, xmmword [rbp - 0x70]
movdqa xmmword [rbp + 0xb0], xmm0
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
bt ebx, 0xe
jae 0x18005a468
movabs r9, 0xc9cb4c5073dfc6de
lea rdx, [rbp + 0x50]
mov qword [rsp + 0x30], r9
lea rcx, [rbp + 0x50]
mov rax, qword [rsp + 0x30]
mov r8d, edx
mov qword [rbp + 0x50], rax
mov qword [rsp + 0x30], rsi
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x58], rax
mov qword [rsp + 0x30], r14
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x60], rax
mov qword [rsp + 0x30], rsi
mov rax, qword [rsp + 0x30]
movdqa xmm0, xmmword [rbp + 0x50]
mov qword [rbp - 0x58], rax
xorps xmm0, xmmword [rbp - 0x60]
movq rax, xmm0
movdqa xmmword [rbp + 0x50], xmm0
test al, al
je 0x18005a3fb
nop dword [rax + rax]
inc rcx
mov r8, rcx
cmp byte [rcx], r15b
jne 0x18005a3f0
mov qword [rsp + 0x30], r9
sub r8d, edx
mov rax, qword [rsp + 0x30]
lea rdx, [rbp + 0xc0]
mov qword [rbp + 0xc0], rax
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov rcx, rdi
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0xc8], rax
mov qword [rsp + 0x30], r14
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x50], rax
mov qword [rsp + 0x30], rsi
mov rax, qword [rsp + 0x30]
movdqa xmm0, xmmword [rbp + 0xc0]
mov qword [rbp - 0x48], rax
xorps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp + 0xc0], xmm0
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test bl, 0x10
je 0x18005a558
movabs r9, 0xb4f85d5572decdde
lea rdx, [rbp + 0x60]
mov qword [rsp + 0x30], r9
lea rcx, [rbp + 0x60]
mov rax, qword [rsp + 0x30]
movabs r10, 0x216ff70400bc85e6
mov qword [rbp + 0x60], rax
mov r8d, edx
mov qword [rsp + 0x30], r10
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x68], rax
mov qword [rsp + 0x30], r14
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x40], rax
mov qword [rsp + 0x30], rsi
mov rax, qword [rsp + 0x30]
movdqa xmm0, xmmword [rbp + 0x60]
mov qword [rbp - 0x38], rax
xorps xmm0, xmmword [rbp - 0x40]
movq rax, xmm0
movdqa xmmword [rbp + 0x60], xmm0
test al, al
je 0x18005a4eb
nop
inc rcx
mov r8, rcx
cmp byte [rcx], r15b
jne 0x18005a4e0
mov qword [rsp + 0x30], r9
sub r8d, edx
mov rax, qword [rsp + 0x30]
lea rdx, [rbp + 0xd0]
mov qword [rbp + 0xd0], rax
xor r9d, r9d
mov qword [rsp + 0x30], r10
mov rcx, rdi
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0xd8], rax
mov qword [rsp + 0x30], r14
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x30], rax
mov qword [rsp + 0x30], rsi
mov rax, qword [rsp + 0x30]
movdqa xmm0, xmmword [rbp + 0xd0]
mov qword [rbp - 0x28], rax
xorps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp + 0xd0], xmm0
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test bl, 2
je 0x18005a648
movabs r9, 0x90fa565e60d2c1de
lea rdx, [rbp + 0x70]
mov qword [rsp + 0x30], r9
lea rcx, [rbp + 0x70]
mov rax, qword [rsp + 0x30]
movabs r10, 0x216ff70400bca59b
mov qword [rbp + 0x70], rax
mov r8d, edx
mov qword [rsp + 0x30], r10
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x78], rax
mov qword [rsp + 0x30], r14
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x20], rax
mov qword [rsp + 0x30], rsi
mov rax, qword [rsp + 0x30]
movdqa xmm0, xmmword [rbp + 0x70]
mov qword [rbp - 0x18], rax
xorps xmm0, xmmword [rbp - 0x20]
movq rax, xmm0
movdqa xmmword [rbp + 0x70], xmm0
test al, al
je 0x18005a5db
nop
inc rcx
mov r8, rcx
cmp byte [rcx], r15b
jne 0x18005a5d0
mov qword [rsp + 0x30], r9
sub r8d, edx
mov rax, qword [rsp + 0x30]
lea rdx, [rbp + 0xe0]
mov qword [rbp + 0xe0], rax
xor r9d, r9d
mov qword [rsp + 0x30], r10
mov rcx, rdi
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0xe8], rax
mov qword [rsp + 0x30], r14
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x10], rax
mov qword [rsp + 0x30], rsi
mov rax, qword [rsp + 0x30]
movdqa xmm0, xmmword [rbp + 0xe0]
mov qword [rbp - 8], rax
xorps xmm0, xmmword [rbp - 0x10]
movdqa xmmword [rbp + 0xe0], xmm0
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
movabs r9, 0xe996383116b7a58f
lea rdx, [rbp + 0x80]
mov qword [rsp + 0x30], r9
lea rcx, [rbp + 0x80]
mov rax, qword [rsp + 0x30]
mov r8d, edx
mov qword [rbp + 0x80], rax
mov qword [rsp + 0x30], rsi
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x88], rax
mov qword [rsp + 0x30], r14
mov rax, qword [rsp + 0x30]
mov qword [rbp], rax
mov qword [rsp + 0x30], rsi
mov rax, qword [rsp + 0x30]
movdqa xmm0, xmmword [rbp + 0x80]
mov qword [rbp + 8], rax
xorps xmm0, xmmword [rbp]
movq rax, xmm0
movdqa xmmword [rbp + 0x80], xmm0
test al, al
je 0x18005a6cb
nop
inc rcx
mov r8, rcx
cmp byte [rcx], r15b
jne 0x18005a6c0
mov qword [rsp + 0x30], r9
sub r8d, edx
mov rax, qword [rsp + 0x30]
lea rdx, [rbp + 0xf0]
mov qword [rbp + 0xf0], rax
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov rcx, rdi
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0xf8], rax
mov qword [rsp + 0x30], r14
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x10], rax
mov qword [rsp + 0x30], rsi
mov rax, qword [rsp + 0x30]
movdqa xmm0, xmmword [rbp + 0xf0]
mov qword [rbp + 0x18], rax
xorps xmm0, xmmword [rbp + 0x10]
movdqa xmmword [rbp + 0xf0], xmm0
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.1800dbf50
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret