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

Disassembly:
mov byte [rsp + 0x20], r9b
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xf8
mov dword [rsp + 0xa4], 0x78
mov dword [rsp + 0xa0], 0
mov dword [rsp + 0xc8], 0
mov dword [rsp + 0xb8], 0
mov qword [rsp + 0x98], 0
mov dword [rsp + 0x64], 0
mov dword [rsp + 0x60], 0
mov qword [rsp + 0xb0], 0xffffffffffffffff
mov dword [rsp + 0xa8], 0
mov qword [rsp + 0xc0], 0
lea r8, [0x18005f6c8]
lea rdx, [0x1800602c0]
mov ecx, 1
call fcn.1801276b0
nop
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x100]
lea r8, [0x180060280]
lea rdx, [0x1800602c0]
mov ecx, 2
call fcn.1801276b0
mov r11, qword [rsp + 0x108]
mov qword [rsp + 0x20], r11
mov r9, qword [rsp + 0x108]
lea r8, [0x180060240]
lea rdx, [0x1800602c0]
mov ecx, 2
call fcn.1801276b0
mov r11d, dword [rsp + 0x110]
mov dword [rsp + 0x20], r11d
mov r9d, dword [rsp + 0x110]
lea r8, [0x180060208]
lea rdx, [0x1800602c0]
mov ecx, 2
call fcn.1801276b0
movzx r11d, byte [rsp + 0x118]
movzx r9d, byte [rsp + 0x118]
mov dword [rsp + 0x20], r11d
lea r8, [0x1800601d0]
lea rdx, [0x1800602c0]
mov ecx, 2
call fcn.1801276b0
mov r9, qword [rsp + 0x120]
lea r8, [0x180060198]
lea rdx, [0x1800602c0]
mov ecx, 2
call fcn.1801276b0
mov r9, qword [rsp + 0x128]
lea r8, [0x180060170]
lea rdx, [0x1800602c0]
mov ecx, 2
call fcn.1801276b0
mov r9, qword [rsp + 0x130]
lea r8, [0x180060150]
lea rdx, [0x1800602c0]
mov ecx, 2
call fcn.1801276b0
mov edx, 4
mov rcx, qword [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
je 0x180123cd8
mov dword [rsp + 0xa4], 0x57
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], 4
mov r9, qword [rsp + 0x120]
lea r8, [0x18005f6e0]
lea rdx, [0x1800602c0]
xor ecx, ecx
call fcn.1801276b0
jmp 0x180124438
mov rcx, qword [rsp + 0x128]
call qword [sym.imp.KERNEL32.dll_IsBadCodePtr]
test eax, eax
je 0x180123d2d
mov dword [rsp + 0xa4], 0x57
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x128]
lea r8, [0x180060118]
lea rdx, [0x1800602c0]
xor ecx, ecx
call fcn.1801276b0
jmp 0x180124438
call fcn.180127230
mov dword [rsp + 0xa4], eax
cmp dword [rsp + 0xa4], 0
je 0x180123d70
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0xa4]
lea r8, [0x18005f7b8]
lea rdx, [0x1800602c0]
xor ecx, ecx
call fcn.1801276b0
jmp 0x180124438
mov rdx, qword [rsp + 0x100]
lea rcx, [rsp + 0xc0]
call fcn.180125460
mov dword [rsp + 0xa4], eax
cmp dword [rsp + 0xa4], 0
je 0x180123ddb
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xc0]
lea r8, [0x18005f760]
lea rdx, [0x1800602c0]
xor ecx, ecx
call fcn.1801276b0
jmp 0x180124438
mov rdx, qword [rsp + 0x120]
mov rcx, qword [rsp + 0xc0]
call fcn.180126330
mov dword [rsp + 0xa4], eax
cmp dword [rsp + 0xa4], 0
je 0x180123e46
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xc0]
lea r8, [0x1800600b0]
lea rdx, [0x1800602c0]
xor ecx, ecx
call fcn.1801276b0
jmp 0x180124438
mov rcx, qword [rsp + 0xc0]
call fcn.180126110
mov dword [rsp + 0xa4], eax
cmp dword [rsp + 0xa4], 0
je 0x180123e9c
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0xc0]
lea r8, [0x180060050]
lea rdx, [0x1800602c0]
xor ecx, ecx
call fcn.1801276b0
jmp 0x180124438
mov ecx, dword [rsp + 0x110]
call fcn.1800eb9ac
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
jne 0x180123f0e
mov dword [rsp + 0xa4], 0xe
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x110]
lea r8, [0x180060018]
lea rdx, [0x1800602c0]
xor ecx, ecx
call fcn.1801276b0
jmp 0x180124438
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 1
xor r9d, r9d
mov r8d, 1
mov edx, 0x40000000
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0xb0], rax
cmp qword [rsp + 0xb0], 0xffffffffffffffff
jne 0x180123f9b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0xa4], eax
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x108]
lea r8, [0x18005ff90]
lea rdx, [0x1800602c0]
xor ecx, ecx
call fcn.1801276b0
jmp 0x180124438
mov rax, qword [rsp + 0x120]
mov eax, dword [rax]
mov dword [rsp + 0xa0], eax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x100]
lea r8, [0x18005ff50]
lea rdx, [0x1800602c0]
mov ecx, 3
call fcn.1801276b0
mov r11d, dword [rsp + 0xa0]
mov dword [rsp + 0xc8], r11d
mov eax, dword [rsp + 0x110]
mov dword [rsp + 0x64], eax
movzx eax, byte [rsp + 0x118]
cmp eax, 1
jne 0x18012412b
mov edx, dword [rsp + 0xa0]
lea rcx, [rsp + 0x68]
call fcn.180127840
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xa8]
mov r8d, 0x2c
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1801240a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0xa4], eax
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0x38], eax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0x2c
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xb0]
lea r8, [0x18005ff00]
lea rdx, [0x1800602c0]
xor ecx, ecx
call fcn.1801276b0
jmp 0x180124438
mov eax, dword [rsp + 0xa8]
cmp rax, 0x2c
je 0x18012412b
mov dword [rsp + 0xa4], 0x3e4
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x40], 0x2c
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x38], eax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0x2c
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xb0]
lea r8, [0x18005fe80]
lea rdx, [0x1800602c0]
xor ecx, ecx
call fcn.1801276b0
jmp 0x180124438
mov dword [rsp + 0x60], 0
jmp 0x180124146
mov ecx, dword [rsp + 0x110]
mov eax, dword [rsp + 0x60]
add eax, ecx
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0xa0]
cmp dword [rsp + 0x60], eax
jae 0x18012442d
mov ecx, dword [rsp + 0xc8]
mov eax, dword [rsp + 0xa0]
sub eax, ecx
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0xc8]
lea r8, [0x18005fe40]
lea rdx, [0x1800602c0]
mov ecx, 3
call fcn.1801276b0
cmp dword [rsp + 0xa0], 0
je 0x1801241cb
mov ecx, dword [rsp + 0xc8]
mov eax, dword [rsp + 0xa0]
sub eax, ecx
mov eax, eax
imul rax, rax, 0x64
mov ecx, dword [rsp + 0xa0]
cqo
idiv rcx
mov dword [rsp + 0xb8], eax
jmp 0x1801241d6
mov dword [rsp + 0xb8], 0
mov r8, qword [rsp + 0x130]
mov edx, dword [rsp + 0xb8]
mov ecx, 1
call qword [rsp + 0x128]
mov dword [rsp + 0xa4], eax
cmp dword [rsp + 0xa4], 0
je 0x180124265
mov dword [rsp + 0xa4], 0x4c7
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 1
mov r9, qword [rsp + 0x128]
lea r8, [0x18005fe00]
lea rdx, [0x1800602c0]
xor ecx, ecx
call fcn.1801276b0
jmp 0x180124438
mov eax, dword [rsp + 0x110]
cmp dword [rsp + 0xc8], eax
jae 0x180124280
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0x64], eax
mov r8d, dword [rsp + 0x64]
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xc0]
call fcn.180125e20
mov dword [rsp + 0xa4], eax
cmp dword [rsp + 0xa4], 0
je 0x1801242f8
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xc0]
lea r8, [0x18005fda0]
lea rdx, [0x1800602c0]
xor ecx, ecx
call fcn.1801276b0
jmp 0x180124438
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xa8]
mov r8d, dword [rsp + 0x64]
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18012438f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0xa4], eax
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0x38], eax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xb0]
lea r8, [0x18005fd50]
lea rdx, [0x1800602c0]
xor ecx, ecx
call fcn.1801276b0
jmp 0x180124438
mov eax, dword [rsp + 0x64]
cmp dword [rsp + 0xa8], eax
je 0x180124411
mov dword [rsp + 0xa4], 0x3e4
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x38], eax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xb0]
lea r8, [0x18005fcd0]
lea rdx, [0x1800602c0]
xor ecx, ecx
call fcn.1801276b0
jmp 0x180124438
mov ecx, dword [rsp + 0x110]
mov eax, dword [rsp + 0xc8]
sub eax, ecx
mov dword [rsp + 0xc8], eax
jmp 0x180124135
mov dword [rsp + 0xa4], 0
cmp qword [rsp + 0x98], 0
je 0x180124460
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xd8], rax
mov rcx, qword [rsp + 0xd8]
call fcn.1800ec288
cmp qword [rsp + 0xc0], 0
je 0x180124478
lea rcx, [rsp + 0xc0]
call fcn.180125b00
cmp qword [rsp + 0xb0], 0xffffffffffffffff
je 0x180124491
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0xa4], 0
je 0x1801244b4
cmp qword [rsp + 0xb0], 0xffffffffffffffff
je 0x1801244b4
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x1801244f4
lea r8, [0x18005f618]
lea rdx, [0x1800602c0]
mov ecx, 1
call fcn.1801276b0
mov eax, dword [rsp + 0xa4]
add rsp, 0xf8
ret