Function at 0x14007c760
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 [0x1402ba030]
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 [0x1402bc6c8], 0
jne 0x14007c7f8
lea rcx, [0x1402bc490]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov dl, 1
mov ecx, 3
call fcn.1400e54f0
lea rcx, [0x1402bc490]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov byte [0x1402bc6c8], 1
call sym.CheraxLoader.exe_curl_easy_init
mov r14, rax
test rax, rax
je 0x14007ca93
mov r8, r15
cmp qword [r15 + 0x18], 0x10
jb 0x14007c816
mov r8, qword [r15]
mov edx, 0x2712
mov rcx, r14
call sym.CheraxLoader.exe_curl_easy_setopt
lea r8, [0x1402bc6d0]
cmp qword [0x1402bc6e8], 0x10
cmovae r8, qword [0x1402bc6d0]
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 0x14007c86c
mov r8, rdi
mov edx, 0x2749
mov rcx, r14
call sym.CheraxLoader.exe_curl_easy_setopt
lea r8, [0x14007b760]
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 0x14007c9ce
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.14005d3f0
nop
lea rdx, [rbx + 0x20]
lea rcx, [rbp + 0x20]
call fcn.14005d3f0
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.1400628e0
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.14005f2e0
nop
lea rcx, [rbp + 0x20]
call fcn.14005f2e0
lea rcx, [rbp]
call fcn.14005f2e0
add rbx, 0x40
cmp rbx, r13
jne 0x14007c8e0
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 0x14007c9db
mov rcx, qword [rsi]
lea rdx, [0x140204d40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov r13, rax
test rax, rax
je 0x14007ca7f
lea r8, [0x14007b750]
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.1400e5940
mov ebx, eax
mov qword [rbp - 0x30], r14
lea rcx, [rbp - 0x30]
call fcn.1400fe870
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test ebx, ebx
jne 0x14007ca7f
mov rcx, r15
call fcn.14005f2e0
nop
mov rcx, rsi
call fcn.14005f2e0
nop
cmp byte [rdi + 0x40], bl
je 0x14007ca73
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x14007ca73
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.14005b690
mov al, 1
jmp 0x14007cad5
mov rcx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x14007ca8c
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
nop
mov rcx, r15
call fcn.14005f2e0
nop
mov rcx, rsi
call fcn.14005f2e0
nop
cmp byte [rdi + 0x40], 0
je 0x14007cacb
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x14007cacb
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.14005b690
xor al, al
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.1401526c0
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