Function at 0x180055f40
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 [0x180179040]
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 0x180055f92
mov rbx, rax
add rax, 2
jmp 0x180055f80
add rax, 2
test dx, dx
jne 0x180055f80
test rbx, rbx
jne 0x180055fba
mov rbx, rcx
cmp word [rcx], r14w
je 0x180055fba
nop dword [rax]
add rbx, 2
cmp word [rbx], r14w
jne 0x180055fb0
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 0x180055fd0
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 0x18005603b
nop
movzx eax, word [rdi]
dec rbx
test ax, ax
je 0x18005602f
add rdi, 2
mov word [rcx], ax
add rcx, 2
test rbx, rbx
jne 0x180056020
mov word [rcx], r14w
movabs rax, 0xd24ba169120854c1
mov qword [rsp + 0x30], rax
movabs rdi, 0x5862e3b9da80424c
mov rax, qword [rsp + 0x30]
movabs rsi, 0xd225a100126a54ef
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 0x1800560ba
nop dword [rax]
add rcx, 2
cmp word [rcx], r14w
jne 0x1800560b0
movq rax, xmm0
test ax, ax
je 0x1800560e0
lea rdx, [rbp - 0x60]
sub rdx, rcx
nop dword [rax + rax]
mov word [rcx], ax
add rcx, 2
movzx eax, word [rcx + rdx]
test ax, ax
jne 0x1800560d0
mov word [rcx], r14w
mov rdx, qword [0x18018e5a8]
cmp rdx, qword [0x18018e5b0]
je 0x180056110
mov rax, qword [rsp + 0x38]
mov qword [rdx], rax
mov rcx, qword [0x18018e5a8]
add rcx, 8
mov qword [0x18018e5a8], rcx
jmp 0x180056121
lea r8, [rsp + 0x38]
call fcn.180058500
mov rcx, qword [0x18018e5a8]
sub rcx, qword [0x18018e5a0]
sar rcx, 3
dec rcx
call fcn.180056540
test al, al
je 0x1800562f2
mov dl, 1
call fcn.180073f60
mov rbx, rax
lea rdx, [rbp - 0x80]
movabs rax, 0xf241c474730f268c
mov r8d, edx
mov qword [rsp + 0x30], rax
movabs rax, 0x2a1784d0bcee2d2f
mov rcx, qword [rsp + 0x30]
mov qword [rbp - 0x80], rcx
mov qword [rsp + 0x30], rax
movabs rax, 0xc2d71f705b0f6c70
mov rcx, qword [rsp + 0x30]
mov qword [rbp - 0x78], rcx
mov qword [rsp + 0x30], rax
movabs rax, 0x96b406355003d3e2
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, 0xabb13f1e34661811
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x10], rax
movabs rax, 0x96b406177039b68e
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 0x18005622d
inc rcx
mov r8, rcx
cmp byte [rcx], r14b
jne 0x180056222
mov rcx, qword [0x18018e560]
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.1800740d0
movabs rax, 0xd225a100126a54cd
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 0x1800562ce
inc rcx
mov r8, rcx
cmp byte [rcx], r14b
jne 0x1800562c3
mov rcx, qword [0x18018e560]
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 0x18005650b
mov dl, 2
call fcn.180073f60
mov rbx, rax
lea rdx, [rbp - 0x50]
movabs rax, 0xa605c5657e033589
mov r8d, edx
mov qword [rsp + 0x30], rax
movabs rax, 0x3d1682dca8e36223
mov rcx, qword [rsp + 0x30]
mov qword [rbp - 0x50], rcx
mov qword [rsp + 0x30], rax
movabs rax, 0xded656785a097b31
mov rcx, qword [rsp + 0x30]
mov qword [rbp - 0x48], rcx
mov qword [rsp + 0x30], rax
movabs rax, 0xf0946878194dd7fc
mov rcx, qword [rsp + 0x30]
mov qword [rbp - 0x40], rcx
movabs rcx, 0xd4f54a45ee315e80
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x38], rax
movabs rax, 0x12fb6bdc3e471a1a
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, 0xabb13f1e34661811
movdqa xmm2, xmmword [rbp]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x10], rax
movabs rax, 0x96b406177039b68e
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x18], rax
movabs rax, 0x12fb49fc04227673
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 0x18005644b
nop dword [rax]
inc rcx
mov r8, rcx
cmp byte [rcx], r14b
jne 0x180056440
mov rcx, qword [0x18018e560]
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.1800740d0
movabs rax, 0xd225a100126a54cd
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 0x1800564ec
inc rcx
mov r8, rcx
cmp byte [rcx], r14b
jne 0x1800564e1
mov rcx, qword [0x18018e560]
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.1800d9120
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