Function at 0x180057070
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 - 0x40]
sub rsp, 0x140
mov rax, qword [0x18017d040]
xor rax, rsp
mov qword [rbp + 0x30], rax
xor r14d, r14d
mov rdi, rcx
mov ebx, r14d
mov rax, rcx
nop word [rax + rax]
movzx edx, word [rax]
cmp dx, 0x2e
jne 0x1800570c2
mov rbx, rax
add rax, 2
jmp 0x1800570b0
add rax, 2
test dx, dx
jne 0x1800570b0
test rbx, rbx
jne 0x1800570ea
mov rbx, rcx
cmp word [rcx], r14w
je 0x1800570ea
nop dword [rax]
add rbx, 2
cmp word [rbx], r14w
jne 0x1800570e0
sub rbx, rcx
lea r15, str..bin
sar rbx, 1
mov rsi, r15
nop word [rax + rax]
add rsi, 2
cmp word [rsi], r14w
jne 0x180057100
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r9, rax
sub rsi, r15
sar rsi, 1
mov eax, 2
lea rcx, [rsi + 1]
add rcx, rbx
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
xor edx, edx
mov r8, rax
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x38], rax
mov rcx, rax
test rbx, rbx
je 0x18005716b
nop
movzx eax, word [rdi]
dec rbx
test ax, ax
je 0x18005715f
add rdi, 2
mov word [rcx], ax
add rcx, 2
test rbx, rbx
jne 0x180057150
mov word [rcx], r14w
movabs rax, 0x32029769602409f5
mov qword [rsp + 0x30], rax
movabs rdi, 0xf923cb057d2c8ac0
mov rax, qword [rsp + 0x30]
movabs rsi, 0x326c9700604609db
mov qword [rbp - 0x60], rax
mov qword [rsp + 0x30], rdi
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x58], rax
mov qword [rsp + 0x30], rsi
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x30], rdi
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x58], rax
movdqa xmm0, xmmword [rsp + 0x50]
xorps xmm0, xmmword [rbp - 0x60]
movdqa xmmword [rbp - 0x60], xmm0
cmp word [rcx], r14w
je 0x1800571ea
nop dword [rax]
add rcx, 2
cmp word [rcx], r14w
jne 0x1800571e0
movq rax, xmm0
test ax, ax
je 0x180057210
lea rdx, [rbp - 0x60]
sub rdx, rcx
nop dword [rax + rax]
mov word [rcx], ax
add rcx, 2
movzx eax, word [rdx + rcx]
test ax, ax
jne 0x180057200
mov word [rcx], r14w
mov rdx, qword [0x18017e050]
cmp rdx, qword [0x18017e058]
je 0x180057240
mov rax, qword [rsp + 0x38]
mov qword [rdx], rax
mov rcx, qword [0x18017e050]
add rcx, 8
mov qword [0x18017e050], rcx
jmp 0x180057251
lea r8, [rsp + 0x38]
call fcn.180059700
mov rcx, qword [0x18017e050]
sub rcx, qword [0x18017e048]
sar rcx, 3
dec rcx
call fcn.180057670
test al, al
je 0x180057422
mov dl, 1
call fcn.180077720
mov rbx, rax
lea rdx, [rbp - 0x80]
movabs rax, 0x1208f27401237bb8
mov r8d, edx
mov qword [rsp + 0x30], rax
movabs rax, 0x8b56ac6c1b42e5a3
mov rcx, qword [rsp + 0x30]
mov qword [rbp - 0x80], rcx
mov qword [rsp + 0x30], rax
movabs rax, 0x5f20648b8acca44
mov rcx, qword [rsp + 0x30]
mov qword [rbp - 0x78], rcx
mov qword [rsp + 0x30], rax
movabs rax, 0x57729ce1ae411906
mov rcx, qword [rsp + 0x30]
mov qword [rbp - 0x70], rcx
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x68], rax
mov qword [rsp + 0x30], rsi
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x20], rax
mov qword [rsp + 0x30], rdi
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x18], rax
movabs rax, 0x6c942626d7c5be25
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x10], rax
movabs rax, 0x57729cc38e7b7c6a
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movdqa xmm1, xmmword [rbp - 0x80]
xorps xmm1, xmmword [rbp - 0x20]
mov qword [rbp - 8], rax
movq rax, xmm1
movdqa xmm0, xmmword [rbp - 0x10]
xorps xmm0, xmmword [rbp - 0x70]
movdqa xmmword [rbp - 0x70], xmm0
movdqa xmmword [rbp - 0x80], xmm1
test al, al
je 0x18005735d
inc rcx
mov r8, rcx
cmp byte [rcx], r14b
jne 0x180057352
mov rcx, qword [0x18017ded8]
sub r8d, edx
lea rdx, [rbp - 0x80]
mov qword [rsp + 0x20], r14
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.180077890
movabs rax, 0x326c9700604609f9
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x60]
mov rax, qword [rsp + 0x30]
mov r8d, edx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x30], rdi
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x30], rsi
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], rdi
mov rax, qword [rsp + 0x30]
movdqa xmm0, xmmword [rsp + 0x60]
mov qword [rsp + 0x48], rax
xorps xmm0, xmmword [rsp + 0x40]
movq rax, xmm0
movdqa xmmword [rsp + 0x60], xmm0
test al, al
je 0x1800573fe
inc rcx
mov r8, rcx
cmp byte [rcx], r14b
jne 0x1800573f3
mov rcx, qword [0x18017ded8]
sub r8d, edx
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x20], r14
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov al, 1
jmp 0x18005763b
mov dl, 2
call fcn.180077720
mov rbx, rax
lea rdx, [rbp - 0x50]
movabs rax, 0x464cf3650c2f68bd
mov r8d, edx
mov qword [rsp + 0x30], rax
movabs rax, 0x9c57aa600f4faaaf
mov rcx, qword [rsp + 0x30]
mov qword [rbp - 0x50], rcx
mov qword [rsp + 0x30], rax
movabs rax, 0x19f34f40b9aadd05
mov rcx, qword [rsp + 0x30]
mov qword [rbp - 0x48], rcx
mov qword [rsp + 0x30], rax
movabs rax, 0x3152f2ace70f1d18
mov rcx, qword [rsp + 0x30]
mov qword [rbp - 0x40], rcx
movabs rcx, 0x452507117ad0c874
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x38], rax
movabs rax, 0xfaa021ec8c2a9e86
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x30], rax
mov qword [rsp + 0x30], rcx
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x28], rax
mov qword [rsp + 0x30], rsi
mov rax, qword [rsp + 0x30]
mov qword [rbp], rax
mov qword [rsp + 0x30], rdi
mov rax, qword [rsp + 0x30]
mov qword [rbp + 8], rax
movabs rax, 0x6c942626d7c5be25
movdqa xmm2, xmmword [rbp]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x10], rax
movabs rax, 0x57729cc38e7b7c6a
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x18], rax
movabs rax, 0xfaa003ccb64ff2ef
movdqa xmm0, xmmword [rbp + 0x10]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x20], rax
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x50]
mov rax, qword [rsp + 0x30]
xorps xmm2, xmmword [rbp - 0x50]
xorps xmm0, xmmword [rbp - 0x40]
mov qword [rbp + 0x28], rax
movq rax, xmm2
movdqa xmm1, xmmword [rbp + 0x20]
xorps xmm1, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x30], xmm1
movdqa xmmword [rbp - 0x50], xmm2
movdqa xmmword [rbp - 0x40], xmm0
test al, al
je 0x18005757b
nop dword [rax]
inc rcx
mov r8, rcx
cmp byte [rcx], r14b
jne 0x180057570
mov rcx, qword [0x18017ded8]
sub r8d, edx
lea rdx, [rbp - 0x50]
mov qword [rsp + 0x20], r14
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.180077890
movabs rax, 0x326c9700604609f9
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x70]
mov rax, qword [rsp + 0x30]
mov r8d, edx
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x30], rdi
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x30], rsi
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], rdi
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
movdqa xmm0, xmmword [rsp + 0x40]
xorps xmm0, xmmword [rsp + 0x70]
movq rax, xmm0
movdqa xmmword [rsp + 0x70], xmm0
test al, al
je 0x18005761c
inc rcx
mov r8, rcx
cmp byte [rcx], r14b
jne 0x180057611
mov rcx, qword [0x18017ded8]
sub r8d, edx
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], r14
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor al, al
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.1800dc8e0
lea r11, [rsp + 0x140]
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