Function at 0x140003860
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rax, qword [0x140014010]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rbx, rdx
mov qword [rbp + 0x17], rdx
xor r14d, r14d
mov dword [rbp + 0x37], r14d
mov rsi, qword [rdx + 0x10]
mov rdi, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x1400038a7
mov rdi, qword [rdx]
call fcn.14000bfa0
mov qword [rbp + 0x27], rdi
mov qword [rbp + 0x2f], rsi
lea r8, [rbp + 0x27]
mov edx, eax
lea rcx, [rbp - 0x29]
call fcn.140001a10
nop
lea rcx, [rbp - 0x29]
call fcn.1400032e0
movzx edi, al
mov rdx, qword [rbp - 0x11]
cmp rdx, 8
jb 0x140003913
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000390e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000390e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000cc08
test dil, dil
je 0x140003ce6
mov rsi, qword [rbx + 0x10]
mov rdi, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14000392d
mov rdi, qword [rbx]
call fcn.14000bfa0
mov qword [rbp + 0x27], rdi
mov qword [rbp + 0x2f], rsi
lea r8, [rbp + 0x27]
mov edx, eax
lea rcx, [rbp - 9]
call fcn.140001a10
nop
mov edi, 0x79
mov dword [rbp + 0x37], edi
lea rdx, [rbp - 9]
lea rcx, [rbp + 0x27]
call fcn.1400033f0
cmp dword [rax], 2
je 0x1400039d0
mov rsi, qword [rbx + 0x10]
mov rdi, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140003975
mov rdi, qword [rbx]
call fcn.14000bfa0
mov qword [rbp + 0x27], rdi
mov qword [rbp + 0x2f], rsi
lea r8, [rbp + 0x27]
mov edx, eax
lea rcx, [rbp - 0x29]
call fcn.140001a10
nop
mov dword [rbp + 0x37], 0x1fb
mov rsi, qword [rbx + 0x10]
mov rdi, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400039aa
mov rdi, qword [rbx]
call fcn.14000bfa0
mov qword [rbp + 0x27], rdi
mov qword [rbp + 0x2f], rsi
lea r8, [rbp + 0x27]
mov edx, eax
lea rcx, [rbp - 0x49]
call fcn.140001a10
mov edi, 0x19ff
xor sil, sil
jmp 0x1400039d3
mov sil, 1
test dil, 4
je 0x140003a31
and edi, 0xfffffffb
mov rdx, qword [rbp - 0x31]
cmp rdx, 8
jb 0x140003a1f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003a1a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003a1a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000cc08
movdqa xmm0, xmmword [0x14000fa60]
movdqu xmmword [rbp - 0x39], xmm0
mov word [rbp - 0x49], r14w
test dil, 2
je 0x140003a8f
and edi, 0xfffffffd
mov rdx, qword [rbp - 0x11]
cmp rdx, 8
jb 0x140003a7d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003a78
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003a78
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000cc08
movdqa xmm0, xmmword [0x14000fa60]
movdqu xmmword [rbp - 0x19], xmm0
mov word [rbp - 0x29], r14w
test dil, 1
je 0x140003ad8
mov rdx, qword [rbp + 0xf]
cmp rdx, 8
jb 0x140003ad8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003ad3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003ad3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000cc08
test sil, sil
je 0x140003b3d
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140003aea
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
test eax, eax
mov rdx, qword [rbx + 0x18]
je 0x140003cea
cmp rdx, 0x10
jb 0x140003b33
inc rdx
cmp rdx, 0x1000
mov rcx, qword [rbx]
jb 0x140003b2e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003d51
mov rcx, r8
call fcn.14000cc08
mov eax, 1
jmp 0x140003d1e
mov rsi, qword [rbx + 0x10]
mov rdi, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140003b4e
mov rdi, qword [rbx]
call fcn.14000bfa0
mov qword [rbp + 0x27], rdi
mov qword [rbp + 0x2f], rsi
lea r8, [rbp + 0x27]
mov edx, eax
lea rcx, [rbp - 9]
call fcn.140001a10
nop
lea rdx, [rbp - 9]
lea rcx, [rbp + 0x27]
call fcn.1400033f0
mov edi, dword [rax]
mov rdx, qword [rbp + 0xf]
cmp rdx, 8
jb 0x140003bbd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003bb8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003bb8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000cc08
cmp edi, 3
jne 0x140003cae
mov rsi, qword [rbx + 0x10]
mov rdi, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140003bd7
mov rdi, qword [rbx]
call fcn.14000bfa0
mov qword [rbp + 0x27], rdi
mov qword [rbp + 0x2f], rsi
lea r8, [rbp + 0x27]
mov edx, eax
lea rcx, [rbp - 0x49]
call fcn.140001a10
nop
lea rcx, [rbp - 0x49]
cmp qword [rbp - 0x31], 8
cmovae rcx, qword [rbp - 0x49]
call fcn.14000c670
movzx edi, al
mov qword [rbp + 0x37], rdi
shr rax, 0x20
mov dword [rbp + 0x27], eax
lea rcx, [0x140014058]
mov qword [rbp + 0x2f], rcx
movaps xmm0, xmmword [rbp + 0x27]
movdqa xmmword [rbp + 0x27], xmm0
cmp eax, 0x91
jne 0x140003c45
lea r8, [rbp + 0x37]
lea rdx, [rbp + 0x27]
lea rcx, [rbp - 0x49]
call fcn.140003500
mov rdi, qword [rbp + 0x37]
mov eax, dword [rbp + 0x27]
test eax, eax
setne cl
mov rdx, 0xffffffffffffffff
test eax, eax
cmovne rdi, rdx
test cl, cl
jne 0x140003d58
mov rdx, qword [rbp - 0x31]
cmp rdx, 8
jb 0x140003ca6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003ca0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003ca0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000cc08
nop
test rdi, rdi
jmp 0x140003af3
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140003d1e
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140003cdf
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003d51
mov rcx, r8
call fcn.14000cc08
jmp 0x140003d1e
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140003d1c
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140003d17
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003d51
mov rcx, r8
call fcn.14000cc08
xor eax, eax
mov byte [rbx], 0
mov qword [rbx + 0x18], recv
mov qword [rbx + 0x10], r14
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.14000c990
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea r8, [rbp - 0x49]
lea rdx, [rbp + 0x27]
lea rcx, str.remove_all
call fcn.140002ba0
int3