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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x370]
sub rsp, 0x470
mov rax, qword [0x14024fa28]
xor rax, rsp
mov qword [rbp + 0x360], rax
mov r14, r8
mov rbx, rdx
mov rdi, rcx
xor r15d, r15d
sub rcx, 0xffffffffffffff80
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdx, rbx
mov rcx, rdi
call fcn.14013fea0
cmp rax, 0xffffffffffffffff
jne 0x1401401a6
lea rcx, [rdi + 0x80]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x1401405af
imul rcx, rax, 0x1c0
mov rdx, qword [rdi + 0xb0]
add rdx, rcx
lea rax, [rbp - 0x70]
mov ecx, 3
movups xmm0, xmmword [rdx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rax + 0x40], xmm0
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [rax + 0x50], xmm1
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rax + 0x60], xmm0
lea rax, [rax + 0x80]
movups xmm1, xmmword [rdx + 0x70]
movups xmmword [rax - 0x10], xmm1
lea rdx, [rdx + 0x80]
sub rcx, 1
jne 0x1401401c0
movups xmm0, xmmword [rdx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rax + 0x30], xmm1
lea rcx, [rdi + 0x80]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [0x1402574c0]
lea r9, [rbp - 0x22]
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x70]
mov rcx, qword [rax + 0x488]
call fcn.1400a8150
nop
cmp qword [rbp - 0x80], 0
je 0x140140473
mov ebx, 0x104
mov edx, ebx
lea rcx, [rbp + 0x150]
call fcn.140195db0
test al, al
je 0x140140473
lea rax, [rbp + 0x150]
mov rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], 0
jne 0x140140292
lea rax, [rcx + 1]
mov edi, 0x103
cmp rax, rbx
jae 0x1401402f1
lea rax, [rcx + 0x11]
lea r8, str.SupportRequests_
mov rdx, rbx
cmp rax, rbx
ja 0x1401402cc
lea rcx, [rbp + 0x150]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
jmp 0x1401402f1
lfence
mov r9, rdi
sub r9, rcx
sub rdx, rcx
lea rax, [rbp + 0x150]
lea rcx, [rax + rcx*2]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov word [rbp + 0x356], r15w
lea rax, [rbp + 0x150]
mov rcx, 0xffffffffffffffff
nop
inc rcx
cmp word [rax + rcx*2], 0
jne 0x140140300
lea rax, [rcx + 1]
cmp rax, rbx
jae 0x14014035d
lea rax, [rcx + 0xc]
lea r8, str.req_04X.xml
cmp rax, rbx
ja 0x140140335
mov rdx, rbx
lea rcx, [rbp + 0x150]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
jmp 0x14014035d
lfence
sub rdi, rcx
sub rbx, rcx
lea rax, [rbp + 0x150]
lea rcx, [rax + rcx*2]
mov r9, rdi
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov word [rbp + 0x356], r15w
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov ebx, eax
mov eax, 3
mul ebx
mov ecx, ebx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 0x1e
imul ecx, ecx, 0x80000001
add ebx, ecx
mov r12d, 1
cmove ebx, r12d
mov edi, r15d
movabs rsi, 0x200000005
nop word [rax + rax]
mov r10d, 0x20
mov r9d, 0xffffffff
nop dword [rax]
dec r10
shr r9d, 1
cmp r9d, 0x7ffffffd
ja 0x1401403b0
mov r8d, r15d
mov r11, r15
lea rcx, [r10 - 1]
nop dword [rax]
shl r8d, cl
add r8d, r8d
nop word [rax + rax]
mov eax, ebx
imul rbx, rax, 0xbc8f
mov rax, rsi
mul rbx
mov rax, rbx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x1e
imul eax, eax, 0x7fffffff
sub ebx, eax
lea eax, [rbx - 1]
cmp eax, r9d
ja 0x1401403e0
or r8d, eax
add r11, r10
cmp r11, 0x20
jb 0x1401403d0
mov dword [rsp + 0x20], r8d
lea r9, [rbp + 0x150]
mov edx, 0x105
mov r8, 0xffffffffffffffff
mov rcx, r14
call fcn.1400138a0
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], r12d
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 7]
mov rcx, r14
call qword [case.0x1401ba071.53]
cmp rax, 0xffffffffffffffff
jne 0x1401404bb
inc edi
cmp edi, 0x20
jb 0x1401403a0
xor bl, bl
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x14014059b
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140140596
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140140596
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, rax
call qword [case.0x1401b9e8b.6]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 3]
mov rcx, r14
call qword [case.0x1401ba071.53]
mov r10, rax
cmp rax, 0xffffffffffffffff
je 0x140140473
mov rdx, r14
lea rcx, [rsp + 0x48]
call fcn.140140c10
nop
mov r8, r10
mov rdx, qword [case.0x1401b9e8b.6]
lea rcx, [rsp + 0x58]
call fcn.140027290
nop
mov dword [rsp + 0x40], r15d
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0x10
cmovae rdx, qword [rsp + 0x70]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
mov r8d, dword [rbp - 0x80]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140140561
mov eax, dword [rsp + 0x40]
cmp rax, qword [rbp - 0x80]
jne 0x140140561
mov byte [rsp + 0x48], 1
mov bl, 1
jmp 0x140140563
xor bl, bl
cmp byte [rsp + 0x58], 0
jne 0x14014057b
mov rcx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x60]
call qword [case.0x14003c8e9.0]
nop
cmp byte [rsp + 0x48], 0
jne 0x140140475
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140140475
call fcn.140007ea0
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x78], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x70], 0
movzx eax, bl
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.1401c5190
add rsp, 0x470
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret