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

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r14
lea rbp, [rsp - 0x3e8]
sub rsp, 0x4e8
mov r14d, dword [rbp + 0x448]
xor esi, esi
mov r11d, r8d
mov r10d, r14d
mov edi, esi
dec r10d
je 0x1400b27f5
sub r10d, 3
je 0x1400b27f5
sub r10d, 4
je 0x1400b27f5
sub r10d, 0x10
je 0x1400b27f5
cmp r10d, 8
je 0x1400b27f5
xor eax, eax
add rsp, 0x4e8
pop r14
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x4e0], rbx
mov qword [rsp + 0x4d8], r12
mov qword [rsp + 0x4d0], r13
mov qword [rsp + 0x4c8], r15
mov r10d, 1
cmp r14d, 8
jg 0x1400b2874
mov ecx, r14d
mov r12d, r10d
shl r12d, cl
lea r8d, [r12*4 + 0x36]
dec ecx
je 0x1400b2858
sub ecx, 3
je 0x1400b284d
cmp ecx, 4
jne 0x1400b2845
mov eax, r11d
jmp 0x1400b2865
mov eax, dword [rbp + 0x448]
jmp 0x1400b2865
lea eax, [r11 + 1]
cdq
sub eax, edx
sar eax, 1
jmp 0x1400b2865
lea eax, [r11 + 7]
cdq
and edx, 7
add eax, edx
sar eax, 3
lea ebx, [rax + 3]
and ebx, 0xfffffffc
jne 0x1400b2898
mov ebx, 4
jmp 0x1400b2898
mov r12d, dword [rbp + 0x448]
mov eax, r14d
mov r8d, gethostname
cdq
and edx, 7
lea ebx, [rdx + rax]
sar ebx, 3
imul ebx, r11d
add ebx, 3
and ebx, 0xfffffffc
mov rcx, qword [rbp + 0x410]
mov eax, 0x4d42
mov r15d, ebx
mov word [rsp + 0x50], ax
mov dword [rsp + 0x56], esi
mov dword [rsp + 0x5a], r8d
imul r15d, r9d
lea eax, [r15 + r8]
mov dword [rsp + 0x78], 0x28
mov dword [rsp + 0x7c], r11d
mov dword [rbp - 0x80], r9d
mov word [rbp - 0x7c], r10w
mov word [rbp - 0x7a], r14w
mov dword [rsp + 0x52], eax
mov dword [rbp - 0x78], esi
mov dword [rbp - 0x74], r15d
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x68], rsi
mov r13, rsi
mov qword [rbp - 0x50], rsi
test rcx, rcx
je 0x1400b2926
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov r8d, r10d
mov edx, 0xc0000000
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jmp 0x1400b2937
movsxd rcx, eax
mov edx, r10d
call fcn.1400ba4a0
mov r13, rax
test rax, rax
je 0x1400b2eec
mov qword [rsp + 0x40], rdi
test rsi, rsi
je 0x1400b29b6
lea r9, [rbp + 0x448]
lea rdx, [rsp + 0x50]
mov r8d, reloc.WS2_32.dll_ntohl
mov rcx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x1400b2c67
cmp dword [rbp + 0x448], 0xe
jne 0x1400b2c67
lea r9, [rbp + 0x448]
lea rdx, [rsp + 0x78]
mov r8d, 0x28
mov rcx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x1400b2c67
cmp dword [rbp + 0x448], 0x28
jne 0x1400b2c67
mov edi, dword [rbp - 0x50]
jmp 0x1400b2a03
movsd xmm0, qword [rsp + 0x50]
movsxd rdi, dword [rbp - 0x50]
movsd qword [rdi + r13], xmm0
mov eax, dword [rsp + 0x58]
mov dword [rdi + r13 + 8], eax
movzx eax, word [rsp + 0x5c]
mov word [rdi + r13 + 0xc], ax
add edi, 0xe
movsxd rax, edi
add edi, 0x28
movups xmm0, xmmword [rsp + 0x78]
movups xmmword [rax + r13], xmm0
movups xmm1, xmmword [rbp - 0x78]
movups xmmword [rax + r13 + 0x10], xmm1
movsd xmm0, qword [rbp - 0x68]
movsd qword [rax + r13 + 0x20], xmm0
cmp r14d, 8
ja 0x1400b2c01
mov eax, 0x112
bt eax, r14d
jae 0x1400b2c01
mov eax, dword [rbp + 0x440]
mov r9d, dword [rbp + 0x450]
mov edx, dword [rbp + 0x420]
mov rcx, qword [rbp + 0x418]
mov dword [rsp + 0x30], eax
mov eax, dword [rbp + 0x430]
mov dword [rsp + 0x28], r14d
mov r14d, dword [rbp + 0x428]
mov dword [rsp + 0x20], eax
mov r8d, r14d
call fcn.1400b3700
movsxd rdx, r12d
mov r15, rax
test r12d, r12d
jle 0x1400b2aa4
lea r8, [rbp - 0x3e]
lea r9, [rbp - 0x3f]
lea r10, [rbp - 0x40]
sub r8, rax
sub r9, rax
sub r10, rax
lea rcx, [rax + 0x59]
nop dword [rax]
movzx eax, byte [rcx + 1]
lea rcx, [rcx + 4]
mov byte [r8 + rcx - 0x5d], al
movzx eax, byte [rcx - 4]
mov byte [r9 + rcx - 0x5d], al
movzx eax, byte [rcx - 5]
mov byte [r10 + rcx - 0x5d], al
dec rdx
jne 0x1400b2a80
lea r12d, [r12*4]
lea rdx, [rbp - 0x40]
test rsi, rsi
je 0x1400b2ae0
lea r9, [rbp + 0x448]
mov r8d, r12d
mov rcx, rsi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x1400b2afa
cmp dword [rbp + 0x448], r12d
je 0x1400b2af1
jmp 0x1400b2afa
movsxd rcx, edi
movsxd r8, r12d
add rcx, r13
call sub.msvcrt.dll_memcpy
add edi, r12d
mov qword [rsp + 0x40], 1
test byte [rbp + 0x438], 2
je 0x1400b2b94
mov r12d, dword [rbp + 0x428]
xor r14d, r14d
test r12d, r12d
jle 0x1400b2bf2
nop word [rax + rax]
mov edx, r14d
mov rcx, r15
call fcn.1400b397c
mov rdx, rax
test rsi, rsi
je 0x1400b2b6a
lea r9, [rbp + 0x448]
mov r8d, ebx
mov rcx, rsi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x1400b2b5b
cmp dword [rbp + 0x448], ebx
je 0x1400b2b7a
mov rcx, r15
xor edi, edi
call fcn.1400b391c
jmp 0x1400b2c67
movsxd rcx, edi
movsxd r8, ebx
add rcx, r13
call sub.msvcrt.dll_memcpy
add edi, ebx
inc r14d
cmp r14d, r12d
jl 0x1400b2b20
mov rdi, qword [rsp + 0x40]
mov rcx, r15
call fcn.1400b391c
jmp 0x1400b2c67
dec r14d
js 0x1400b2bf2
nop dword [rax]
mov edx, r14d
mov rcx, r15
call fcn.1400b397c
mov rdx, rax
test rsi, rsi
je 0x1400b2bdd
lea r9, [rbp + 0x448]
mov r8d, ebx
mov rcx, rsi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x1400b2b5b
cmp dword [rbp + 0x448], ebx
jne 0x1400b2b5b
jmp 0x1400b2bed
movsxd rcx, edi
movsxd r8, ebx
add rcx, r13
call sub.msvcrt.dll_memcpy
add edi, ebx
dec r14d
jns 0x1400b2ba0
mov rdi, qword [rsp + 0x40]
mov rcx, r15
call fcn.1400b391c
jmp 0x1400b2c67
mov r12d, dword [rbp + 0x450]
lea eax, [r12 - 0x18]
test eax, 0xfffffff7
jne 0x1400b2cac
test byte [rbp + 0x438], 2
je 0x1400b2cac
cmp dword [rbp + 0x430], ebx
jne 0x1400b2cac
mov rdx, qword [rbp + 0x418]
test rsi, rsi
je 0x1400b2c97
lea r9, [rbp + 0x448]
mov r8d, r15d
mov rcx, rsi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x1400b2c62
cmp dword [rbp + 0x448], r15d
je 0x1400b2ca5
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rbp + 0x410]
test rbx, rbx
je 0x1400b2eda
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
test rdi, rdi
jne 0x1400b2eec
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x1400b2eec
movsxd rcx, edi
movsxd r8, r15d
add rcx, r13
call sub.msvcrt.dll_memcpy
mov edi, 1
jmp 0x1400b2c67
mov rcx, qword [0x1406a23c8]
movsxd r8, ebx
mov edx, 8
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov qword [rsp + 0x60], rax
test rax, rax
je 0x1400b2c62
mov r15d, dword [rbp + 0x428]
mov qword [rsp + 0x40], 1
mov dword [rbp + 0x448], 0
test r15d, r15d
jle 0x1400b2ebe
mov edx, dword [rbp + 0x430]
mov r8d, dword [rbp + 0x438]
xor r9d, r9d
neg edx
and r8d, 2
mov dword [rsp + 0x48], r9d
mov dword [rsp + 0x6c], edx
lea edx, [r15 - 1]
mov dword [rsp + 0x68], r8d
imul edx, dword [rbp + 0x430]
mov dword [rsp + 0x4c], edx
mov rcx, rax
movsxd r9, r9d
test r8d, r8d
jne 0x1400b2d2f
movsxd r9, edx
mov edx, dword [rbp + 0x420]
add r9, qword [rbp + 0x418]
test edx, edx
jle 0x1400b2e37
mov r10d, edx
nop word [rax + rax]
cmp r12d, 0x20
jne 0x1400b2dfa
movzx eax, byte [r9 + 3]
movzx r8d, byte [r9 + 2]
sub r8d, 0xff
imul r8d, eax
mov eax, 0x80808081
add r8d, 0xfe01
imul r8d
add edx, r8d
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
mov byte [rcx + 2], dl
movzx eax, byte [r9 + 3]
movzx r8d, byte [r9 + 1]
sub r8d, 0xff
imul r8d, eax
mov eax, 0x80808081
add r8d, 0xfe01
imul r8d
add edx, r8d
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
mov byte [rcx + 1], dl
movzx eax, byte [r9 + 3]
movzx r8d, byte [r9]
sub r8d, 0xff
imul r8d, eax
mov eax, 0x80808081
add r8d, 0xfe01
imul r8d
add edx, r8d
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
add r9, 4
mov byte [rcx], dl
jmp 0x1400b2e15
movzx eax, byte [r9 + 2]
add r9, 3
mov byte [rcx + 2], al
movzx eax, byte [r9 - 2]
mov byte [rcx + 1], al
movzx eax, byte [r9 - 3]
mov byte [rcx], al
cmp r14d, 0x20
jne 0x1400b2e25
mov byte [rcx + 3], 0
add rcx, 4
jmp 0x1400b2e29
add rcx, 3
dec r10
jne 0x1400b2d50
mov rax, qword [rsp + 0x60]
mov rdx, rax
test rsi, rsi
je 0x1400b2e6c
lea r9, [rsp + 0x70]
mov r8d, ebx
mov rcx, rsi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x1400b2e63
cmp dword [rsp + 0x70], ebx
je 0x1400b2e7c
mov rax, qword [rsp + 0x60]
xor edi, edi
jmp 0x1400b2ec3
movsxd rcx, edi
movsxd r8, ebx
add rcx, r13
call sub.msvcrt.dll_memcpy
add edi, ebx
mov r9d, dword [rsp + 0x48]
mov edx, dword [rsp + 0x4c]
mov r8d, dword [rbp + 0x448]
add r9d, dword [rbp + 0x430]
add edx, dword [rsp + 0x6c]
mov rax, qword [rsp + 0x60]
inc r8d
mov dword [rsp + 0x48], r9d
mov dword [rsp + 0x4c], edx
mov dword [rbp + 0x448], r8d
cmp r8d, r15d
jge 0x1400b2ebe
mov r8d, dword [rsp + 0x68]
jmp 0x1400b2d21
mov rdi, qword [rsp + 0x40]
mov rcx, qword [0x1406a23c8]
mov r8, rax
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_HeapFree]
jmp 0x1400b2c67
test rdi, rdi
je 0x1400b2ee4
mov rdi, r13
jmp 0x1400b2eec
mov rcx, r13
call fcn.1400ba4d0
mov r15, qword [rsp + 0x4c8]
mov r13, qword [rsp + 0x4d0]
mov r12, qword [rsp + 0x4d8]
mov rbx, qword [rsp + 0x4e0]
mov rax, rdi
add rsp, 0x4e8
pop r14
pop rdi
pop rsi
pop rbp
ret