Function at 0x1401465f0
Capabilities:
Enumerate network shares

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x78]
sub rsp, 0x178
xor r14d, r14d
mov dword [rbp + 0xc0], r14d
mov rax, qword [rcx + 0x10]
mov rcx, qword [rcx + 8]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rcx
lea r8d, [r14 + 0x5c]
mov dword [rsp + 0x20], 1
lea r9d, [r14 + 1]
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x20]
call fcn.1400926d0
nop
lea r13, [r14 - 1]
cmp qword [rbp - 0x58], 3
jl 0x140146bd1
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
mov rbx, qword [rbp - 0x60]
mov qword [rbp - 0x10], 2
lea rax, [0x1402d7b90]
mov qword [rbp - 8], rax
mov rdx, qword [rbx + 0x20]
add rdx, 2
xor r8d, r8d
lea rcx, [rbp - 0x80]
call fcn.140086b60
mov rdi, qword [rbp - 0x78]
movaps xmm0, xmmword [rbp - 0x10]
movdqa xmmword [rbp + 0x20], xmm0
mov rdx, rdi
lea rcx, [rbp + 0x20]
call fcn.140087e60
mov r8, qword [rbx + 0x20]
test r8, r8
je 0x1401466bb
add r8, r8
mov rdx, qword [rbx + 0x28]
lea rcx, [rdi + 4]
call fcn.14024bde0
mov rax, qword [rbp - 0x80]
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x50], rax
mov rax, qword [rbp - 0x78]
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x48], rax
mov rax, qword [rbp - 0x70]
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x40], rax
mov dword [rbp + 0xc0], 6
mov dword [rbp + 0xc8], r14d
mov dword [rsp + 0x58], r14d
mov dword [rbp + 0xd8], r14d
mov r12, qword [rbp + 0xc0]
lea rcx, [rbp - 0x50]
call fcn.140094620
mov rcx, rax
lea rax, [rbp + 0xd8]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xc8]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
lea r8, [rsp + 0x60]
mov edx, 1
call sub.NETAPI32.dll_NetShareEnum
mov edi, eax
mov dword [rsp + 0x5c], eax
test eax, eax
je 0x14014675b
cmp eax, 0xea
jne 0x140146a56
mov r15, qword [rsp + 0x60]
mov ebx, 1
mov dword [rbp + 0xd0], ebx
mov ecx, dword [rbp + 0xc8]
cmp ecx, ebx
jb 0x140146a56
nop dword [rax]
cmp dword [r15 + 8], 0
jne 0x140146a3e
mov r8, r13
mov rdx, qword [r15]
lea rcx, [rbp + 0x40]
call fcn.14008d720
nop
mov rdi, qword [rax]
mov qword [rax], r14
mov rsi, qword [rax + 8]
mov qword [rax + 8], r14
mov r14, qword [rax + 0x10]
mov qword [rax + 0x10], 0
mov eax, dword [rbp + 0xc0]
or eax, 0x28
mov dword [rbp + 0xc0], eax
test al, 0x10
je 0x1401467eb
and dword [rbp + 0xc0], 0xffffffef
test r12, r12
je 0x1401467eb
mov eax, r13d
lock xadd dword [r12], eax
cmp eax, 1
jne 0x1401467eb
mov rcx, r12
call fcn.1402275a0
nop
mov eax, dword [rbp + 0xc0]
test al, 8
je 0x14014681b
and dword [rbp + 0xc0], 0xfffffff7
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x14014681b
mov eax, r13d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14014681b
mov rcx, qword [rbp + 0x40]
call fcn.1402275a0
nop
mov r13, qword [rsp + 0x50]
mov r8, qword [rsp + 0x40]
movabs r10, 0x2aaaaaaaaaaaaaab
test r8, r8
je 0x1401468e5
mov eax, dword [r8]
mov r8, qword [rsp + 0x40]
cmp eax, 1
jg 0x1401468e5
lea rax, [r8 + 0x17]
and rax, 0xfffffffffffffff8
mov r9, qword [rsp + 0x48]
mov rcx, r9
sub rcx, rax
mov rax, r10
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov rax, qword [r8 + 8]
sub rax, rdx
mov rcx, qword [rsp + 0x50]
cmp rax, rcx
je 0x1401468ae
lea rax, [rcx + rcx*2]
xor ecx, ecx
mov qword [rsp + 0x68], rcx
mov qword [r9 + rax*8], rdi
mov qword [rsp + 0x70], rcx
mov qword [r9 + rax*8 + 8], rsi
mov qword [rsp + 0x78], rcx
mov qword [r9 + rax*8 + 0x10], r14
inc qword [rsp + 0x50]
jmp 0x140146a0a
test rcx, rcx
jne 0x1401468e5
test rdx, rdx
je 0x1401468e5
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [r9 - 0x18], rdi
mov qword [rsp + 0x70], rax
mov qword [r9 - 0x10], rsi
mov qword [rsp + 0x78], rax
mov qword [r9 - 8], r14
sub qword [rsp + 0x48], 0x18
inc qword [rsp + 0x50]
jmp 0x140146a0a
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rbp + 0x58], rdi
mov qword [rsp + 0x70], rax
mov qword [rbp + 0x60], rsi
mov qword [rsp + 0x78], rax
mov qword [rbp + 0x68], r14
test r8, r8
je 0x1401469b1
mov eax, dword [r8]
cmp eax, 1
jg 0x1401469b1
mov r8, qword [rsp + 0x40]
lea rax, [r8 + 0x17]
and rax, 0xfffffffffffffff8
mov r9, qword [rsp + 0x48]
mov rcx, r9
sub rcx, rax
mov rax, r10
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov rcx, qword [r8 + 8]
mov rax, rcx
sub rax, rdx
mov r8, qword [rsp + 0x50]
sub rax, r8
cmp rax, 1
jge 0x1401469ce
cmp rdx, 1
jl 0x1401469b1
add rcx, rcx
lea rax, [r8 + r8*2]
cmp rax, rcx
jge 0x1401469b1
lea rax, [rdx + rdx*2]
shl rax, 3
mov rbx, r9
sub rbx, rax
test r8, r8
je 0x1401469a7
cmp r9, rbx
je 0x1401469a7
test r9, r9
je 0x1401469a7
test rbx, rbx
je 0x1401469a7
lea r8, [r8 + r8*2]
shl r8, 3
mov rdx, r9
mov rcx, rbx
call fcn.14024bde0
mov r8, qword [rsp + 0x50]
mov r9, rbx
mov qword [rsp + 0x48], rbx
jmp 0x1401469ce
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 1]
lea rcx, [rsp + 0x40]
call fcn.14003aa60
mov r8, qword [rsp + 0x50]
mov r9, qword [rsp + 0x48]
lea rax, [r13*2]
add rax, r13
lea rbx, [r9 + rax*8]
sub r8, r13
lea r8, [r8 + r8*2]
shl r8, 3
lea rcx, [rbx + 0x18]
mov rdx, rbx
call fcn.14024bde0
mov qword [rbx], rdi
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], r14
inc qword [rsp + 0x50]
mov ebx, dword [rbp + 0xd0]
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x140146a1b
mov eax, dword [rax]
cmp eax, 1
jle 0x140146a2e
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.14003aa60
nop
mov ecx, dword [rbp + 0xc8]
mov r13, 0xffffffffffffffff
xor r14d, r14d
add r15, 0x18
inc ebx
mov dword [rbp + 0xd0], ebx
cmp ebx, ecx
jbe 0x140146780
mov edi, dword [rsp + 0x5c]
mov rcx, qword [rsp + 0x60]
call sub.NETAPI32.dll_NetApiBufferFree
cmp edi, 0xea
je 0x140146703
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x140146a8a
mov eax, r13d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140146a8a
mov rcx, qword [rbp - 0x50]
call fcn.1402275a0
test edi, edi
jne 0x140146b75
cmp qword [rbp - 0x58], 4
jl 0x140146ae4
mov rdx, qword [rbp - 0x60]
mov r8, qword [rdx + 0x30]
mov rdx, qword [rdx + 0x38]
lea rcx, [rbp - 0x38]
call fcn.1400868e0
or dword [rbp + 0xc0], 0x41
mov rcx, qword [rbp - 0x30]
mov rax, qword [rbp - 0x28]
mov qword [rbp], rax
mov qword [rbp + 8], rcx
movaps xmm0, xmmword [rbp]
movdqa xmmword [rbp + 0x30], xmm0
xor r8d, r8d
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.140148840
nop
test al, al
je 0x140146ae7
mov dil, 1
test byte [rbp + 0xc0], 1
je 0x140146b0f
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x140146b0f
mov eax, r13d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140146b0f
mov rcx, qword [rbp - 0x38]
call fcn.1402275a0
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140146bd4
mov eax, r13d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140146bd4
mov rax, qword [rsp + 0x50]
lea rcx, [rax + rax*2]
mov rbx, qword [rsp + 0x48]
lea rsi, [rbx + rcx*8]
cmp rbx, rsi
je 0x140146b69
mov rcx, qword [rbx]
test rcx, rcx
je 0x140146b60
mov eax, r13d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140146b60
mov rcx, qword [rbx]
call fcn.1402275a0
add rbx, 0x18
cmp rbx, rsi
jne 0x140146b44
mov rcx, qword [rsp + 0x40]
call fcn.1402275a0
jmp 0x140146bd4
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140146bd1
mov eax, r13d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140146bd1
mov rax, qword [rsp + 0x50]
lea rcx, [rax + rax*2]
mov rbx, qword [rsp + 0x48]
lea rdi, [rbx + rcx*8]
cmp rbx, rdi
je 0x140146bc7
mov rcx, qword [rbx]
test rcx, rcx
je 0x140146bbe
mov eax, r13d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140146bbe
mov rcx, qword [rbx]
call fcn.1402275a0
add rbx, 0x18
cmp rbx, rdi
jne 0x140146ba2
mov rcx, qword [rsp + 0x40]
call fcn.1402275a0
xor dil, dil
mov rax, qword [rbp - 0x68]
test rax, rax
je 0x140146bf1
lock xadd dword [rax], r13d
cmp r13d, 1
jne 0x140146bf1
mov rcx, qword [rbp - 0x68]
call fcn.1402275a0
movzx eax, dil
add rsp, 0x178
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret