Function at 0x180061970
Capabilities:
Delete file
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x180195040]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rax, qword [0x180196040]
movzx ecx, word [0x180197570]
lea rdi, [rax*8]
mov rax, qword [0x180196050]
mov rbx, qword [rdi + rax]
lea rax, [rbp - 0x70]
test cx, cx
je 0x1800619e0
lea rdx, [0x180197570]
lea r8, [rbp - 0x70]
sub rdx, r8
mov word [rax], cx
add rax, 2
movzx ecx, word [rdx + rax]
test cx, cx
jne 0x1800619d0
xor esi, esi
mov word [rax], si
movzx ecx, word [rbx]
test cx, cx
je 0x180061a10
mov rdx, rbx
sub rdx, rax
nop dword [rax]
nop word [rax + rax]
mov word [rax], cx
add rax, 2
movzx ecx, word [rdx + rax]
test cx, cx
jne 0x180061a00
lea rcx, [rbp - 0x70]
mov word [rax], si
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x180061c39
mov rcx, qword [0x180196050]
mov r8, qword [0x180196058]
add rcx, rdi
mov qword [rsp + 0x2d0], r14
mov qword [rsp + 0x2d8], r15
lea rdx, [rcx + 8]
sub r8, rdx
call fcn.180117d70
sub qword [0x180196058], 8
mov dl, 1
call fcn.18008b850
mov rdi, rax
lea rdx, [rsp + 0x50]
movabs rax, 0x1df128d66c58329d
movabs r15, 0x3d954da0033557ef
mov qword [rsp + 0x30], rax
movabs r14, 0xc35fa6211be4c2ac
mov rcx, qword [rsp + 0x30]
movabs rax, 0xb12ac1487d8aadcf
mov qword [rsp + 0x50], rcx
mov r8d, edx
mov qword [rsp + 0x30], rax
movabs rax, 0xd8aa8198cb0c0a50
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x30], rax
movabs rax, 0xd7e14f4560f07e3a
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x60], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x30], r15
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x30], r14
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x78], rax
movabs rax, 0xb1cca1f6a4657e31
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x80], rax
movabs rax, 0xd7e14f6740ca1b56
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movdqa xmm1, xmmword [rsp + 0x50]
xorps xmm1, xmmword [rsp + 0x70]
movdqa xmm0, xmmword [rsp + 0x60]
mov qword [rbp - 0x78], rax
movq rax, xmm1
xorps xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rsp + 0x50], xmm1
movdqa xmmword [rsp + 0x60], xmm0
test al, al
je 0x180061b6c
inc rcx
mov r8, rcx
cmp byte [rcx], sil
jne 0x180061b61
sub r8d, edx
mov qword [rsp + 0x20], rsi
lea rdx, [rsp + 0x50]
xor r9d, r9d
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, rbx
mov rcx, rdi
call fcn.18008b9c0
movabs rax, 0x3d954da0033557cd
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x40]
mov rax, qword [rsp + 0x30]
mov r8d, ecx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], r14
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], r15
mov rax, qword [rsp + 0x30]
mov r15, qword [rsp + 0x2d8]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x30], r14
mov rax, qword [rsp + 0x30]
movdqa xmm0, xmmword [rsp + 0x40]
mov r14, qword [rsp + 0x2d0]
mov qword [rsp + 0x78], rax
xorps xmm0, xmmword [rsp + 0x70]
movq rax, xmm0
movdqa xmmword [rsp + 0x40], xmm0
test al, al
je 0x180061c1c
inc rdx
mov r8, rdx
cmp byte [rdx], sil
jne 0x180061c11
sub r8d, ecx
mov qword [rsp + 0x20], rsi
mov rcx, 0xffffffffffffffff
lea rdx, [rsp + 0x40]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1800f1520
mov rbx, qword [rsp + 0x2e0]
add rsp, 0x2b0
pop rdi
pop rsi
pop rbp
ret