Function at 0x180054630
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 [0x180175010]
xor rax, rsp
mov qword [rbp + 0x30], rax
xor r14d, r14d
mov rdi, rcx
mov ebx, r14d
nop word [rax + rax]
movzx eax, word [rcx]
cmp ax, 0x2e
cmove rbx, rcx
add rcx, 2
test ax, ax
jne 0x180054670
test rbx, rbx
jne 0x18005469c
mov rbx, rdi
cmp word [rdi], r14w
je 0x18005469c
add rbx, 2
cmp word [rbx], r14w
jne 0x180054692
sub rbx, rdi
lea r15, str..bin
sar rbx, 1
mov rsi, r15
nop dword [rax]
add rsi, 2
cmp word [rsi], r14w
jne 0x1800546b0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
sub rsi, r15
lea rcx, [rbx + 1]
mov r9, rax
sar rsi, 1
add rcx, rsi
mov eax, 2
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 0x18005471b
nop
movzx eax, word [rdi]
dec rbx
test ax, ax
je 0x18005470f
add rdi, 2
mov word [rcx], ax
add rcx, 2
test rbx, rbx
jne 0x180054700
mov word [rcx], r14w
movabs rax, 0x4f5f459c082f812b
mov qword [rsp + 0x30], rax
movabs rdi, 0x6fda61f061f8fbc2
mov rax, qword [rsp + 0x30]
movabs rsi, 0x4f3145f5084d8105
mov qword [rbp - 0x80], rax
mov qword [rsp + 0x30], rdi
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x78], 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]
pxor xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rbp - 0x80], xmm0
cmp word [rcx], r14w
je 0x18005479a
nop dword [rax]
add rcx, 2
cmp word [rcx], r14w
jne 0x180054790
mov rax, qword [rbp - 0x80]
test ax, ax
je 0x1800547c0
lea rdx, [rbp - 0x80]
sub rdx, rcx
nop word [rax + rax]
mov word [rcx], ax
add rcx, 2
movzx eax, word [rdx + rcx]
test ax, ax
jne 0x1800547b0
mov word [rcx], r14w
mov rdx, qword [0x180175fe0]
cmp rdx, qword [0x180175fe8]
je 0x1800547f0
mov rax, qword [rsp + 0x38]
mov qword [rdx], rax
mov rcx, qword [0x180175fe0]
add rcx, 8
mov qword [0x180175fe0], rcx
jmp 0x180054801
lea r8, [rsp + 0x38]
call fcn.180056d00
mov rcx, qword [0x180175fe0]
sub rcx, qword [0x180175fd8]
sar rcx, 3
dec rcx
call fcn.180054c30
test al, al
je 0x1800549e2
mov dl, 1
call fcn.180071aa0
mov rbx, rax
lea r8, [rbp - 0x70]
movabs rax, 0x6f5520816928f366
mov edx, r8d
mov qword [rsp + 0x30], rax
movabs rax, 0x1daf0699079694a1
mov rcx, qword [rsp + 0x30]
mov qword [rbp - 0x70], rcx
mov qword [rsp + 0x30], rax
movabs rax, 0x10507089511d5aa6
mov rcx, qword [rsp + 0x30]
mov qword [rbp - 0x68], rcx
mov qword [rsp + 0x30], rax
movabs rax, 0x44ccc46890fc0d60
mov rcx, qword [rsp + 0x30]
mov qword [rbp - 0x60], rcx
lea rcx, [rbp - 0x70]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x58], 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, 0x793650e73e742ec7
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x10], rax
movabs rax, 0x44ccc44ab0c6680c
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movdqa xmm1, xmmword [rbp - 0x70]
pxor xmm1, xmmword [rbp - 0x20]
mov qword [rbp - 8], rax
movq rax, xmm1
movdqa xmm0, xmmword [rbp - 0x10]
pxor xmm0, xmmword [rbp - 0x60]
movdqa xmmword [rbp - 0x60], xmm0
movdqa xmmword [rbp - 0x70], xmm1
test al, al
je 0x18005490f
inc rcx
mov rdx, rcx
cmp byte [rcx], r14b
jne 0x180054904
mov rcx, qword [0x180175e68]
sub edx, r8d
mov r8d, edx
mov qword [rsp + 0x20], r14
lea rdx, [rbp - 0x70]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.180071c10
movabs rax, 0x4f3145f5084d8127
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x60]
mov rax, qword [rsp + 0x30]
mov edx, r8d
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]
mov qword [rsp + 0x48], rax
movdqa xmm0, xmmword [rsp + 0x40]
pxor xmm0, xmmword [rsp + 0x60]
movq rax, xmm0
movdqa xmmword [rsp + 0x60], xmm0
test al, al
je 0x1800549bb
nop dword [rax]
inc rcx
mov rdx, rcx
cmp byte [rcx], r14b
jne 0x1800549b0
mov rcx, qword [0x180175e68]
sub edx, r8d
mov r8d, edx
mov qword [rsp + 0x20], r14
lea rdx, [rsp + 0x60]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov al, 1
jmp 0x180054c02
mov dl, 2
call fcn.180071aa0
mov rbx, rax
lea r8, [rbp - 0x50]
movabs rax, 0x3b1121906424e063
mov edx, r8d
mov qword [rsp + 0x30], rax
movabs rax, 0xaae0095139bdbad
mov rcx, qword [rsp + 0x30]
mov qword [rbp - 0x50], rcx
mov qword [rsp + 0x30], rax
movabs rax, 0xc513981501b4de7
mov rcx, qword [rsp + 0x30]
mov qword [rbp - 0x48], rcx
mov qword [rsp + 0x30], rax
movabs rax, 0x22ecaa25d9b2097e
mov rcx, qword [rsp + 0x30]
mov qword [rbp - 0x40], rcx
movabs rcx, 0x7fb1dc8c816ad206
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x38], rax
movabs rax, 0x165d5f21a542b9a0
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, 0x793650e73e742ec7
movdqa xmm2, xmmword [rbp]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x10], rax
movabs rax, 0x44ccc44ab0c6680c
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x18], rax
movabs rax, 0x165d7d019f27d5c9
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]
pxor xmm2, xmmword [rbp - 0x50]
movdqa xmm0, xmmword [rbp - 0x40]
pxor xmm0, xmmword [rbp + 0x10]
mov qword [rbp + 0x28], rax
movq rax, xmm2
movdqa xmm1, xmmword [rbp + 0x20]
pxor xmm1, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x30], xmm1
movdqa xmmword [rbp - 0x50], xmm2
movdqa xmmword [rbp - 0x40], xmm0
test al, al
je 0x180054b3b
nop
inc rcx
mov rdx, rcx
cmp byte [rcx], r14b
jne 0x180054b30
mov rcx, qword [0x180175e68]
sub edx, r8d
mov r8d, edx
mov qword [rsp + 0x20], r14
lea rdx, [rbp - 0x50]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.180071c10
movabs rax, 0x4f3145f5084d8127
lea r8, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x70]
mov rax, qword [rsp + 0x30]
mov edx, r8d
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]
movdqa xmm0, xmmword [rsp + 0x70]
mov qword [rsp + 0x48], rax
pxor xmm0, xmmword [rsp + 0x40]
movq rax, xmm0
movdqa xmmword [rsp + 0x70], xmm0
test al, al
je 0x180054be0
inc rcx
mov rdx, rcx
cmp byte [rcx], r14b
jne 0x180054bd5
mov rcx, qword [0x180175e68]
sub edx, r8d
mov r8d, edx
mov qword [rsp + 0x20], r14
lea rdx, [rsp + 0x70]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor al, al
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.1800d6d50
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