Function at 0x140082560
Capabilities:
Delete file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
mov rax, qword [0x1402dc040]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rdi, r9
mov qword [rsp + 0x50], r9
mov r12, r8
mov qword [rsp + 0x58], r8
mov r13, rdx
mov qword [rsp + 0x60], rdx
mov qword [rbp - 0x30], rdx
mov qword [rbp - 0x28], r8
mov qword [rbp - 0x20], r9
mov r15, qword [rbp + 0xc0]
mov qword [rsp + 0x68], r15
mov qword [rbp - 0x18], r15
cmp byte [0x1402debc0], 0
jne 0x1400825fe
lea rcx, [0x1402de958]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov dl, 1
mov ecx, 3
call fcn.1400f9040
lea rcx, [0x1402de958]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov byte [0x1402debc0], 1
call fcn.140081210
mov r14, rax
test rax, rax
je 0x140082923
mov edx, 0x54
mov r8d, 4
mov rcx, rax
call sym.CheraxLoader.exe_curl_easy_setopt
mov r8, r13
cmp qword [r13 + 0x18], 0xf
jbe 0x140082630
mov r8, qword [r13]
mov edx, 0x2712
mov rcx, r14
call sym.CheraxLoader.exe_curl_easy_setopt
mov edx, 0x34
mov r8d, 1
mov rcx, r14
call sym.CheraxLoader.exe_curl_easy_setopt
lea r8, [0x1402debc8]
cmp qword [0x1402debe0], 0xf
cmova r8, qword [0x1402debc8]
mov edx, 0x2722
mov rcx, r14
call sym.CheraxLoader.exe_curl_easy_setopt
xor r8d, r8d
mov edx, Ordinal_46
mov rcx, r14
call sym.CheraxLoader.exe_curl_easy_setopt
cmp byte [rdi + 0x40], 0
je 0x14008269a
mov r8, rdi
mov edx, 0x2749
mov rcx, r14
call sym.CheraxLoader.exe_curl_easy_setopt
lea r8, [0x140081180]
mov edx, 0x4efb
mov rcx, r14
call sym.CheraxLoader.exe_curl_easy_setopt
mov rsi, qword [r15]
mov rax, qword [r15 + 8]
mov qword [rsp + 0x40], rax
cmp rsi, rax
je 0x14008285e
xor ebx, ebx
lea rax, str.:_
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 6
mov qword [rsp + 0x30], 2
lea rax, [rbp - 0x60]
mov qword [rsp + 0x38], rax
movabs rdi, 0xc000000000000010
movabs r13, 0xc000000000000000
movaps xmm6, xmmword [rsp + 0x20]
movaps xmm7, xmmword [rsp + 0x30]
mov r12, qword [rsp + 0x40]
nop
mov rdx, rsi
lea rcx, [rbp - 0x10]
call fcn.14005ebc0
nop
lea rdx, [rsi + 0x20]
lea rcx, [rbp + 0x10]
call fcn.14005ebc0
nop
lea rax, [rbp - 0x10]
cmp qword [rbp + 8], 0xf
cmova rax, qword [rbp - 0x10]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp]
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x60], r13
lea rax, [rbp + 0x10]
cmp qword [rbp + 0x28], 0xf
cmova rax, qword [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp + 0x20]
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x58], rdi
movdqa xmmword [rsp + 0x40], xmm7
movdqa xmmword [rbp - 0x70], xmm6
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x70]
call fcn.140065ab0
nop
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova rcx, qword [rsp + 0x70]
call qword [case.0x140114cc7.0]
mov r15, rax
test rax, rax
jne 0x1400827be
xor ebx, ebx
jmp 0x140082810
mov ecx, reloc.WS2_32.dll_recv
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdx, rax
test rax, rax
jne 0x1400827de
xor ebx, ebx
mov rcx, r15
call qword [fcn.14016f1de]
jmp 0x140082810
mov qword [rax + 8], 0
mov qword [rax], r15
test rbx, rbx
jne 0x1400827f3
mov rbx, rdx
jmp 0x140082810
mov rcx, rbx
mov rax, qword [rbx + 8]
test rax, rax
je 0x14008280c
nop
mov rcx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x140082800
mov qword [rcx + 8], rdx
lea rcx, [rsp + 0x70]
call fcn.1400633d0
nop
lea rcx, [rbp + 0x10]
call fcn.1400633d0
lea rcx, [rbp - 0x10]
call fcn.1400633d0
add rsi, 0x40
cmp rsi, r12
jne 0x140082710
mov r8, rbx
mov edx, 0x2727
mov rcx, r14
call sym.CheraxLoader.exe_curl_easy_setopt
mov rdi, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov r13, qword [rsp + 0x60]
mov r15, qword [rsp + 0x68]
mov rcx, r12
cmp qword [r12 + 0x18], 0xf
jbe 0x14008286d
mov rcx, qword [r12]
lea rdx, [0x1402221a8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbx, rax
test rax, rax
je 0x1400828bb
lea r8, [0x140081170]
mov edx, 0x4e2b
mov rcx, r14
call sym.CheraxLoader.exe_curl_easy_setopt
mov r8, rbx
mov edx, 0x2711
mov rcx, r14
call sym.CheraxLoader.exe_curl_easy_setopt
mov rcx, r14
call fcn.1400f9570
mov esi, eax
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x1400828c0
mov esi, 2
mov rdx, r14
call fcn.140081350
test esi, esi
jne 0x14008290d
mov rcx, r13
call fcn.1400633d0
nop
mov rcx, r12
call fcn.1400633d0
nop
cmp byte [rdi + 0x40], sil
je 0x140082901
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x140082901
mov rax, qword [rcx]
cmp rcx, rdi
setne dl
call qword [rax + 0x20]
mov qword [rdi + 0x38], 0
mov rcx, r15
call fcn.14005fad0
mov al, 1
jmp 0x140082962
mov rcx, r12
cmp qword [r12 + 0x18], 0xf
jbe 0x14008291c
mov rcx, qword [r12]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
nop
mov rcx, r13
call fcn.1400633d0
nop
mov rcx, r12
call fcn.1400633d0
nop
cmp byte [rdi + 0x40], 0
je 0x140082958
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x140082958
mov rax, qword [rcx]
cmp rcx, rdi
setne dl
call qword [rax + 0x20]
mov qword [rdi + 0x38], 0
mov rcx, r15
call fcn.14005fad0
xor al, al
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.14016dfe0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret