Function at 0x14007bc80
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 - 0x70]
sub rsp, 0x170
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
mov rax, qword [0x1402b3030]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov rdi, r9
mov rsi, r8
mov qword [rsp + 0x48], r8
mov r15, rdx
mov qword [rsp + 0x50], rdx
mov qword [rbp - 0x28], rdx
mov qword [rbp - 0x20], r8
mov qword [rbp - 0x18], r9
mov r12, qword [rbp + 0xd0]
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x10], r12
cmp byte [0x1402b55b8], 0
jne 0x14007bd18
lea rcx, [0x1402b5370]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov dl, 1
mov ecx, 3
call fcn.1400e0280
lea rcx, [0x1402b5370]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov byte [0x1402b55b8], 1
call sym.CheraxLoader.exe_curl_easy_init
mov r14, rax
test rax, rax
je 0x14007bfb3
mov r8, r15
cmp qword [r15 + 0x18], 0x10
jb 0x14007bd36
mov r8, qword [r15]
mov edx, 0x2712
mov rcx, r14
call sym.CheraxLoader.exe_curl_easy_setopt
lea r8, [0x1402b55c0]
cmp qword [0x1402b55d8], 0x10
cmovae r8, qword [0x1402b55c0]
mov edx, 0x2722
mov rcx, r14
call sym.CheraxLoader.exe_curl_easy_setopt
xor r8d, r8d
lea edx, [r8 + 0x2b]
mov rcx, r14
call sym.CheraxLoader.exe_curl_easy_setopt
cmp byte [rdi + 0x40], 0
je 0x14007bd8c
mov r8, rdi
mov edx, 0x2749
mov rcx, r14
call sym.CheraxLoader.exe_curl_easy_setopt
lea r8, [0x14007af00]
mov edx, 0x4efb
mov rcx, r14
call sym.CheraxLoader.exe_curl_easy_setopt
mov rbx, qword [r12]
mov r13, qword [r12 + 8]
cmp rbx, r13
je 0x14007beee
xor esi, esi
mov qword [rsp + 0x20], 2
lea rax, [rbp - 0x60]
mov qword [rsp + 0x28], rax
lea rax, str.:_
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 6
movaps xmm6, xmmword [rsp + 0x20]
movaps xmm7, xmmword [rsp + 0x30]
movabs r15, 0xc000000000000000
movabs r12, 0xc000000000000010
nop dword [rax]
mov rdx, rbx
lea rcx, [rbp]
call fcn.14005cdb0
nop
lea rdx, [rbx + 0x20]
lea rcx, [rbp + 0x20]
call fcn.14005cdb0
nop
lea rax, [rbp]
cmp qword [rbp + 0x18], 0x10
cmovae rax, qword [rbp]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x60], r15
lea rax, [rbp + 0x20]
cmp qword [rbp + 0x38], 0x10
cmovae rax, qword [rbp + 0x20]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp + 0x30]
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x58], r12
movdqa xmmword [rbp - 0x80], xmm6
movdqa xmmword [rbp - 0x70], xmm7
lea r8, [rbp - 0x80]
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x58]
call fcn.140062280
nop
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae rdx, qword [rsp + 0x58]
mov rcx, rsi
call sym.CheraxLoader.exe_curl_slist_append
mov rsi, rax
lea rcx, [rsp + 0x58]
call fcn.14005ec80
nop
lea rcx, [rbp + 0x20]
call fcn.14005ec80
lea rcx, [rbp]
call fcn.14005ec80
add rbx, 0x40
cmp rbx, r13
jne 0x14007be00
mov r8, rsi
mov edx, 0x2727
mov rcx, r14
call sym.CheraxLoader.exe_curl_easy_setopt
mov rsi, qword [rsp + 0x48]
mov r15, qword [rsp + 0x50]
mov r12, qword [rbp - 0x30]
mov rcx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x14007befb
mov rcx, qword [rsi]
lea rdx, [0x1401fec90]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov r13, rax
test rax, rax
je 0x14007bf9f
lea r8, [0x14007aef0]
mov edx, 0x4e2b
mov rcx, r14
call sym.CheraxLoader.exe_curl_easy_setopt
mov r8, r13
mov edx, 0x2711
mov rcx, r14
call sym.CheraxLoader.exe_curl_easy_setopt
mov rcx, r14
call fcn.1400e06d0
mov ebx, eax
mov qword [rbp - 0x30], r14
lea rcx, [rbp - 0x30]
call fcn.1400f9600
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test ebx, ebx
jne 0x14007bf9f
mov rcx, r15
call fcn.14005ec80
nop
mov rcx, rsi
call fcn.14005ec80
nop
cmp byte [rdi + 0x40], bl
je 0x14007bf93
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x14007bf93
mov rax, qword [rcx]
cmp rcx, rdi
sete dl
xor dl, 1
call qword [rax + 0x20]
mov qword [rdi + 0x38], 0
mov rcx, r12
call fcn.14005b050
mov al, 1
jmp 0x14007bff5
mov rcx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x14007bfac
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
nop
mov rcx, r15
call fcn.14005ec80
nop
mov rcx, rsi
call fcn.14005ec80
nop
cmp byte [rdi + 0x40], 0
je 0x14007bfeb
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x14007bfeb
mov rax, qword [rcx]
cmp rcx, rdi
sete dl
xor dl, 1
call qword [rax + 0x20]
mov qword [rdi + 0x38], 0
mov rcx, r12
call fcn.14005b050
xor al, al
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.14014d450
lea r11, [rsp + 0x170]
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