Function at 0x180059510
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 [0x180179040]
xor rax, rsp
mov qword [rbp + 0x100], rax
xor r15d, r15d
mov ebx, edx
mov rdi, rcx
movabs rsi, 0x5862e3b9da80424c
movabs r14, 0xd225a100126a54ef
test dl, 8
je 0x18005964f
movabs r9, 0xfc51cf657b0637b4
lea rdx, [rbp + 0x20]
mov qword [rsp + 0x30], r9
lea rcx, [rbp + 0x20]
mov rax, qword [rsp + 0x30]
movabs r10, 0x5862e39987ec2e28
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 0x1800595eb
nop word [rax + rax]
inc rcx
mov r8, rcx
cmp byte [rcx], r15b
jne 0x1800595e0
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 0x18005973a
test bl, 4
je 0x18005974b
movabs r9, 0xa102d2657f0b33b4
lea rdx, [rbp + 0x30]
mov qword [rsp + 0x30], r9
lea rcx, [rbp + 0x30]
mov rax, qword [rsp + 0x30]
movabs r10, 0x5862c3e4b6ec266c
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 0x1800596db
nop dword [rax]
inc rcx
mov r8, rcx
cmp byte [rcx], r15b
jne 0x1800596d0
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 0x18005983a
movabs r9, 0xa646c4747d1824b4
lea rdx, [rbp + 0x40]
mov qword [rsp + 0x30], r9
lea rcx, [rbp + 0x40]
mov rax, qword [rsp + 0x30]
movabs r10, 0x5862e3b9fadd2629
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 0x1800597cd
inc rcx
mov r8, rcx
cmp byte [rcx], r15b
jne 0x1800597c2
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 0x180059928
movabs r9, 0xf278d561770237b4
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 0x1800598bb
nop dword [rax + rax]
inc rcx
mov r8, rcx
cmp byte [rcx], r15b
jne 0x1800598b0
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 0x180059a18
movabs r9, 0x8f4bc46476033cb4
lea rdx, [rbp + 0x60]
mov qword [rsp + 0x30], r9
lea rcx, [rbp + 0x60]
mov rax, qword [rsp + 0x30]
movabs r10, 0x5862e3b9da80426c
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 0x1800599ab
nop
inc rcx
mov r8, rcx
cmp byte [rcx], r15b
jne 0x1800599a0
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 0x180059b08
movabs r9, 0xab49cf6f640f30b4
lea rdx, [rbp + 0x70]
mov qword [rsp + 0x30], r9
lea rcx, [rbp + 0x70]
mov rax, qword [rsp + 0x30]
movabs r10, 0x5862e3b9da806211
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 0x180059a9b
nop
inc rcx
mov r8, rcx
cmp byte [rcx], r15b
jne 0x180059a90
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, 0xd225a100126a54e5
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 0x180059b8b
nop
inc rcx
mov r8, rcx
cmp byte [rcx], r15b
jne 0x180059b80
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.1800d9120
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