Function at 0x180054770
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push r14
lea rbp, [rsp - 0x498]
sub rsp, 0x598
mov rax, qword [0x180141040]
xor rax, rsp
mov qword [rbp + 0x480], rax
mov rbx, rcx
lea rcx, [rbp + 0x270]
call fcn.180050760
test al, al
je 0x180054bbd
cmp word [rbp + 0x270], 0
lea rax, [rbp + 0x270]
je 0x1800547ca
nop
add rax, 2
cmp word [rax], 0
jne 0x1800547c0
movzx ecx, word [rbx]
test cx, cx
je 0x1800547f0
sub rbx, rax
nop word [rax + rax]
mov word [rax], cx
add rax, 2
movzx ecx, word [rbx + rax]
test cx, cx
jne 0x1800547e0
xor r14d, r14d
lea rcx, [rbp + 0x270]
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov r8d, 1
mov dword [rsp + 0x20], 2
mov word [rax], r14w
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180054bbd
mov qword [rsp + 0x5c8], r12
xor ecx, ecx
mov qword [rsp + 0x590], r15
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x48], rax
lea rcx, [rbp]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
movabs rax, 0xf395ef1b8bc9f434
lea r9, [rbp]
mov qword [rsp + 0x40], rax
lea r8, [rbp - 0x70]
mov rcx, qword [rsp + 0x40]
movabs rax, 0xe688786a111692a9
mov qword [rbp - 0x70], rcx
movabs r15, 0xd6b8823ea6add16f
mov qword [rsp + 0x40], rax
movabs rcx, 0x244a7feb7efe3474
mov rax, qword [rsp + 0x40]
movabs r12, 0x95e958374533b2f0
mov qword [rbp - 0x68], rax
mov edx, 0x40
movabs rax, 0x4524714936e41ae1
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp - 0x60], rax
movabs rax, 0x443e660f1c47d812
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp - 0x58], rax
movabs rax, 0x2028985205edcc23
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp - 0x50], rax
mov qword [rsp + 0x40], rcx
mov rax, qword [rsp + 0x40]
mov qword [rbp - 0x48], rax
mov qword [rsp + 0x40], r15
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x240], rax
mov qword [rsp + 0x40], r12
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x248], rax
movabs rax, 0x390410204e9d7291
vmovdqu xmm0, xmmword [rbp + 0x240]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x250], rax
movabs rax, 0x374c07797228bb32
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x258], rax
movabs rax, 0x202292226898a803
vmovdqu xmm2, xmmword [rbp + 0x250]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x40], rcx
lea rcx, [rbp - 0x40]
mov qword [rbp + 0x260], rax
mov rax, qword [rsp + 0x40]
vpxor xmm1, xmm0, xmmword [rbp - 0x70]
vpxor xmm0, xmm2, xmmword [rbp - 0x60]
mov qword [rbp + 0x268], rax
vmovdqu xmmword [rbp - 0x70], xmm1
vmovdqu xmm1, xmmword [rbp + 0x260]
vpxor xmm2, xmm1, xmmword [rbp - 0x50]
vmovdqu xmmword [rbp - 0x50], xmm2
vmovdqu xmmword [rbp - 0x60], xmm0
call fcn.180054c20
lea rcx, [rbp - 0x40]
lea rax, [rbp - 0x40]
mov r8d, ecx
cmp byte [rbp - 0x40], r14b
je 0x1800549f0
inc rax
mov r8, rax
cmp byte [rax], r14b
jne 0x1800549e5
sub r8d, ecx
mov qword [rsp + 0x20], r14
mov rcx, rsi
lea rdx, [rbp - 0x40]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x180141f10]
movzx eax, word [rcx + 0x50]
cmp eax, 0xffff
je 0x180054ba0
mov qword [rsp + 0x5c0], rdi
mov qword [rsp + 0x5d0], r13
movabs r13, 0xa4dbf15bc28dbe01
nop dword [rax + rax]
mov edi, eax
mov rax, qword [rcx + 0x40]
add rdi, rdi
mov rbx, qword [rax + rdi*8]
test rbx, rbx
je 0x180054b7c
mov edx, dword [rbx + 0x28]
mov rcx, rsi
call fcn.1800537a0
mov r9, qword [rbx + 0x20]
cmp byte [r9], r14b
jne 0x180054ac7
mov qword [rsp + 0x40], r13
lea r9, [rsp + 0x70]
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x70], rax
movabs rax, 0x95e936582c47c299
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x40], r15
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x40], r12
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x58], rax
vmovdqu xmm0, xmmword [rsp + 0x50]
vpxor xmm1, xmm0, xmmword [rsp + 0x70]
vmovdqu xmmword [rsp + 0x70], xmm1
mov r8, qword [rbx]
lea rdx, [rbp - 0x80]
movabs rax, 0xa59da01e9c8da24a
lea rcx, [rbp + 0x30]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp - 0x80], rax
movabs rax, 0x95e95837453392d2
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp - 0x78], rax
mov qword [rsp + 0x40], r15
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x40], r12
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x68], rax
vmovdqu xmm0, xmmword [rsp + 0x60]
vpxor xmm1, xmm0, xmmword [rbp - 0x80]
vmovdqu xmmword [rbp - 0x80], xmm1
call fcn.180054be0
lea rax, [rbp + 0x30]
lea r8, [rbp + 0x30]
cmp byte [rbp + 0x30], r14b
je 0x180054b4e
inc rax
cmp byte [rax], r14b
jne 0x180054b43
mov r8d, eax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], r14
sub r8d, eax
lea rdx, [rbp + 0x30]
xor r9d, r9d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [rbx + 0x30]
mov rcx, rsi
call fcn.1800541a0
mov rcx, qword [0x180141f10]
mov rax, qword [rcx + 0x40]
movzx eax, word [rax + rdi*8 + 0xa]
cmp eax, 0xffff
jne 0x180054a40
mov r13, qword [rsp + 0x5d0]
mov rdi, qword [rsp + 0x5c0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, qword [rsp + 0x590]
mov al, 1
mov r12, qword [rsp + 0x5c8]
jmp 0x180054bbf
xor al, al
mov rcx, qword [rbp + 0x480]
xor rcx, rsp
call fcn.1800d7380
add rsp, 0x598
pop r14
pop rsi
pop rbx
pop rbp
ret