Function at 0x140003490
Capabilities:
Delete file

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x380]
sub rsp, 0x480
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x4c0], rbx
mov rax, qword [0x140073080]
xor rax, rsp
mov qword [rbp + 0x370], rax
mov r13, r9
mov r12, r8
mov r15, rdx
xor ebx, ebx
mov dword [rsp + 0x60], ebx
lea rcx, [rbp + 0x40]
call fcn.140013740
nop
mov rdx, r12
lea rcx, [rbp - 8]
call fcn.140013740
nop
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x150]
call fcn.140026cc0
xor eax, eax
mov qword [rbp + 0x140], rax
mov word [rbp + 0x148], ax
lea r9, [rbp + 0x40]
cmp qword [rbp + 0x58], 0x10
cmovae r9, qword [rbp + 0x40]
lea r8, [rbp - 8]
cmp qword [rbp + 0x10], 0x10
cmovae r8, qword [rbp - 8]
lea rdx, str._s_s.idx
lea rcx, [rbp + 0x150]
call fcn.140002510
lea rdx, [rbp + 0x150]
lea rcx, [rbp + 0x60]
call fcn.1400014c0
nop
mov esi, 1
mov r14d, esi
cmp qword [rbp + 0x70], rbx
je 0x14000358d
lea rcx, [rbp + 0x60]
cmp qword [rbp + 0x78], 0x10
cmovae rcx, qword [rbp + 0x60]
call fcn.14002f0b8
inc eax
mov ecx, dword [0x140077e98]
inc ecx
cdq
idiv ecx
mov r14d, edx
test edx, edx
cmove r14d, esi
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rbx
lea rdx, [rbp - 8]
cmp qword [rbp + 0x10], 0x10
cmovae rdx, qword [rbp - 8]
mov qword [rsp + 0x28], rbx
lea rcx, [rbp - 0x20]
call fcn.140013c70
mov r8d, r14d
lea rdx, str._02d
lea rcx, [rbp + 0x140]
call fcn.1400054a0
movdqa xmm0, xmmword [0x140067e30]
movdqu xmmword [rbp + 0x90], xmm0
mov byte [rbp + 0x80], 0
lea rax, [rbp + 0x140]
mov rdi, 0xffffffffffffffff
mov r8, rdi
inc r8
cmp byte [rax + r8], 0
jne 0x1400035f3
lea rdx, [rbp + 0x140]
lea rcx, [rbp + 0x80]
call fcn.140001c10
nop
xor eax, eax
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], rax
movdqa xmm0, xmmword [0x140067e30]
movdqu xmmword [rbp - 0x60], xmm0
mov byte [rbp - 0x70], al
mov dword [rsp + 0x60], esi
mov r8, qword [rbp + 0x50]
lea rdx, [r8 + 2]
cmp rdx, 0x10
jb 0x14000365a
lea rcx, [rbp - 0x70]
call fcn.140005e00
mov qword [rbp - 0x60], rbx
mov r8, qword [rbp + 0x50]
lea rdx, [rbp + 0x40]
cmp qword [rbp + 0x58], 0x10
cmovae rdx, qword [rbp + 0x40]
lea rcx, [rbp - 0x70]
call fcn.140005270
mov r8d, 2
lea rdx, [0x14005eae0]
lea rcx, [rbp - 0x70]
call fcn.140005270
lea rdx, [rbp + 0x80]
cmp qword [rbp + 0x98], 0x10
cmovae rdx, qword [rbp + 0x80]
mov r8, qword [rbp + 0x90]
lea rcx, [rbp - 0x70]
call fcn.140005270
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x40], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x40], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], setsockopt
mov byte [rax], 0
mov dword [rsp + 0x60], 3
mov r8d, listen
lea rdx, str._d14.log
lea rcx, [rbp - 0x50]
call fcn.140005270
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x78], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], setsockopt
mov byte [rax], 0
mov dword [rsp + 0x60], 7
mov qword [rbp + 0x18], rbx
lea rax, [rbp + 0x20]
mov qword [rbp - 0x78], rax
mov cl, 1
call fcn.140022680
mov qword [rbp + 0x38], rax
lea rcx, [rbp + 0x30]
call fcn.140005f50
mov qword [rbp + 0x20], rax
lea rcx, [rbp + 0x30]
call fcn.1400052f0
mov qword [rbp + 0x28], rax
lea r8, [rsp + 0x68]
cmp qword [rbp - 0x80], 0x10
cmovae r8, qword [rsp + 0x68]
lea rdx, [rsp + 0x68]
cmovae rdx, qword [rsp + 0x68]
add r8, qword [rsp + 0x78]
mov r9d, esi
lea rcx, [rbp + 0x18]
call fcn.140005a80
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x1400037bd
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400037b8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003db9
call fcn.140023e64
movdqa xmm0, xmmword [0x140067e30]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], 0
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x14000380b
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003806
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003dbf
call fcn.140023e64
movdqa xmm0, xmmword [0x140067e30]
movdqu xmmword [rbp - 0x40], xmm0
mov byte [rbp - 0x50], 0
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x140003857
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003852
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003dc5
call fcn.140023e64
xor edx, edx
lea r8d, [rdx + 0x70]
lea rcx, [rbp + 0xd0]
call fcn.140026cc0
mov qword [rbp + 0xd0], rbx
mov byte [rbp + 0xd8], 0
xorps xmm0, xmm0
movdqa xmmword [rbp + 0xe0], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0xf0], xmm1
mov qword [rbp + 0x100], rbx
mov byte [rbp + 0x108], 0
movdqa xmmword [rbp + 0x110], xmm0
mov byte [rbp + 0x120], 0
mov qword [rbp + 0x128], rbx
mov qword [rbp + 0x130], rbx
mov byte [rbp + 0x138], 0
mov rsi, rbx
mov rax, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x20]
sub rax, rcx
sar rax, 5
test rax, rax
je 0x1400039a5
nop word [rax + rax]
add rcx, rbx
cmp qword [rcx + 0x18], 0x10
jb 0x1400038ed
mov rcx, qword [rcx]
mov rax, rdi
lea rax, [rax + 1]
cmp byte [rcx + rax], 0
jne 0x1400038f0
lea rdx, [rax + rcx]
lea r9, [rbp + 0x18]
lea r8, [rbp + 0xd0]
call fcn.140005c80
test al, al
je 0x140003986
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x260]
call fcn.140026cc0
mov r9, qword [rbp - 0x20]
add r9, rbx
cmp qword [r9 + 0x18], 0x10
jb 0x140003937
mov r9, qword [r9]
lea r8, [rbp - 8]
cmp qword [rbp + 0x10], 0x10
cmovae r8, qword [rbp - 8]
lea rdx, [0x14005eae4]
lea rcx, [rbp + 0x260]
call fcn.140002510
lea rcx, [rbp + 0x260]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x140003986
mov rdx, qword [rbp - 0x20]
add rdx, rbx
cmp qword [rdx + 0x18], 0x10
jb 0x14000397a
mov rdx, qword [rdx]
lea rcx, str.no_delete_file__s
call fcn.1400047b0
inc rsi
add rbx, 0x20
mov rax, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x20]
sub rax, rcx
sar rax, 5
cmp rsi, rax
jb 0x1400038e0
lea rax, [rbp - 0x50]
mov qword [rbp - 0x78], rax
mov edx, r14d
lea rcx, [rbp - 0x50]
call fcn.140002cb0
mov rbx, rax
mov qword [rsp + 0x60], rax
xor esi, esi
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x80], setsockopt
mov byte [rsp + 0x68], sil
lea rax, [rbp + 0x150]
nop dword [rax]
inc rdi
cmp byte [rax + rdi], sil
jne 0x1400039e0
mov r8, rdi
lea rdx, [rbp + 0x150]
lea rcx, [rsp + 0x68]
call fcn.140001c10
lea rax, [rsp + 0x68]
mov qword [rbp - 0x78], rax
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x70]
call fcn.140001b40
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140003a21
mov rdx, qword [rbx]
mov r8d, dword [rbx + 0x10]
mov rcx, rax
call fcn.140001860
movzx edi, al
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x140003a6c
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003a67
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003dcb
call fcn.140023e64
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x80], setsockopt
mov byte [rsp + 0x68], 0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140003ab8
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140003ab3
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003dd1
mov rcx, r8
call fcn.140023e64
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], setsockopt
mov byte [rbx], 0
test dil, dil
jne 0x140003af9
lea rcx, str.file_fail_generate_idx
call fcn.1400047b0
mov qword [rsp + 0x20], r15
mov r9, r12
lea r8, str._s_s.log
mov edx, 0x104
mov rcx, r13
call fcn.1400012b0
jmp 0x140003b7e
lea rcx, [rbp + 0xa0]
call fcn.14002e648
lea rdx, [rbp + 0xa0]
lea rcx, [rbp + 0xa8]
call fcn.14002e24c
mov edx, dword [rbp + 0xb8]
inc edx
mov ecx, dword [rbp + 0xbc]
add ecx, 0x76c
mov eax, dword [rbp + 0xa8]
mov dword [rsp + 0x58], eax
mov eax, dword [rbp + 0xac]
mov dword [rsp + 0x50], eax
mov eax, dword [rbp + 0xb0]
mov dword [rsp + 0x48], eax
mov eax, dword [rbp + 0xb4]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r15
mov r9, r12
lea r8, str._s_s__02d__04d_02d_02d_02d_02d_02d.log
mov edx, 0x104
mov rcx, r13
call fcn.1400012b0
nop
mov r8, qword [rbp + 0xe0]
test r8, r8
je 0x140003bf6
mov rcx, qword [rbp + 0xf0]
sub rcx, r8
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 3
mov rax, r8
cmp rdx, 0x1000
jb 0x140003bdc
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003dd7
mov rcx, r8
call fcn.140023e64
xorps xmm0, xmm0
movdqa xmmword [rbp + 0xe0], xmm0
mov qword [rbp + 0xf0], rsi
lea rcx, [rbp + 0x18]
call fcn.140005200
nop
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x140003c23
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
test rax, rax
je 0x140003c23
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
nop
mov rdx, qword [rbp + 0x98]
cmp rdx, 0x10
jb 0x140003c65
inc rdx
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003c5f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003ddd
call fcn.140023e64
nop
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140003cbc
mov rdx, qword [rbp - 0x18]
call fcn.140005750
mov rdx, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x20]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003cab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003de3
call fcn.140023e64
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rsi
mov rdx, qword [rbp + 0x78]
cmp rdx, 0x10
jb 0x140003cf7
inc rdx
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003cf2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003de9
call fcn.140023e64
mov qword [rbp + 0x70], rsi
mov qword [rbp + 0x78], setsockopt
mov byte [rbp + 0x60], 0
mov rdx, qword [rbp + 0x10]
cmp rdx, 0x10
jb 0x140003d42
inc rdx
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003d3d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003def
call fcn.140023e64
mov qword [rbp + 8], rsi
mov qword [rbp + 0x10], setsockopt
mov byte [rbp - 8], 0
mov rdx, qword [rbp + 0x58]
cmp rdx, 0x10
jb 0x140003d89
inc rdx
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003d84
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003db3
call fcn.140023e64
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.140023e40
mov rbx, qword [rsp + 0x4c0]
add rsp, 0x480
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14002d7d0
nop
call fcn.14002d7d0
nop
call fcn.14002d7d0
nop
call fcn.14002d7d0
nop
call fcn.14002d7d0
nop
call fcn.14002d7d0
nop
call fcn.14002d7d0
nop
call fcn.14002d7d0
nop
call fcn.14002d7d0
nop
call fcn.14002d7d0
nop
call fcn.14002d7d0
int3