Function at 0x14013fa70
Capabilities:
Enumerate network shares

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x68]
sub rsp, 0x168
xor ebx, ebx
mov dword [rbp + 0xb0], ebx
mov rax, qword [rcx + 0x10]
mov rcx, qword [rcx + 8]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rcx
lea r8d, [rbx + 0x5c]
mov dword [rsp + 0x20], 1
lea r9d, [rbx + 1]
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x20]
call fcn.1400930e0
nop
lea r14, [rbx - 1]
cmp qword [rbp - 0x70], 3
jl 0x14014004f
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rbx
mov rbx, qword [rbp - 0x78]
mov qword [rbp - 0x10], 2
lea rax, [0x1402ca5a0]
mov qword [rbp - 8], rax
mov rdx, qword [rbx + 0x20]
add rdx, 2
xor r8d, r8d
lea rcx, [rbp - 0x50]
call fcn.140087220
mov rdi, qword [rbp - 0x48]
movaps xmm0, xmmword [rbp - 0x10]
movdqa xmmword [rbp + 0x20], xmm0
mov rdx, rdi
lea rcx, [rbp + 0x20]
call fcn.1400885d0
mov r8, qword [rbx + 0x20]
test r8, r8
je 0x14013fb3a
add r8, r8
mov rdx, qword [rbx + 0x28]
lea rcx, [rdi + 4]
call fcn.14023ffe0
nop
mov dword [rbp + 0xb0], 2
xor ebx, ebx
mov dword [rbp + 0xb8], ebx
mov dword [rbp + 0xc8], ebx
mov dword [rbp + 0xc0], ebx
mov rdi, qword [rbp + 0xb0]
nop
lea rcx, [rbp - 0x50]
call fcn.140094f20
mov rcx, rax
lea rax, [rbp + 0xc0]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0xc8]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xb8]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
lea r8, [rsp + 0x78]
mov edx, 1
call sub.NETAPI32.dll_NetShareEnum
mov r13d, eax
mov dword [rsp + 0x70], eax
test eax, eax
je 0x14013fbbb
cmp eax, 0xea
jne 0x14013fec6
mov rsi, qword [rsp + 0x78]
mov r12d, 1
mov ecx, dword [rbp + 0xb8]
cmp ecx, r12d
jb 0x14013fec6
movabs r13, 0x2aaaaaaaaaaaaaab
nop
cmp dword [rsi + 8], 0
jne 0x14013feb1
mov r8, r14
mov rdx, qword [rsi]
lea rcx, [rbp + 0x40]
call fcn.14008e200
nop
mov rcx, qword [rax]
mov qword [rsp + 0x58], rcx
mov rcx, qword [rax + 8]
mov qword [rsp + 0x60], rcx
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x68], rcx
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
mov eax, dword [rbp + 0xb0]
or eax, 0x28
mov dword [rbp + 0xb0], eax
test al, 0x10
je 0x14013fc53
and dword [rbp + 0xb0], 0xffffffef
test rdi, rdi
je 0x14013fc53
mov eax, r14d
lock xadd dword [rdi], eax
cmp eax, 1
jne 0x14013fc53
mov rcx, rdi
call fcn.14021b7f0
nop
mov eax, dword [rbp + 0xb0]
test al, 8
je 0x14013fc83
and dword [rbp + 0xb0], 0xfffffff7
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x14013fc83
mov eax, r14d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013fc83
mov rcx, qword [rbp + 0x40]
call fcn.14021b7f0
nop
mov r15, qword [rsp + 0x50]
mov r8, qword [rsp + 0x40]
test r8, r8
je 0x14013fd5c
mov eax, dword [r8]
mov r8, qword [rsp + 0x40]
cmp eax, 1
jg 0x14013fd5c
lea rax, [r8 + 0x17]
and rax, 0xfffffffffffffff8
mov r9, qword [rsp + 0x48]
mov rcx, r9
sub rcx, rax
mov rax, r13
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 0x14013fd19
lea rax, [rcx + rcx*2]
lea rcx, [r9 + rax*8]
mov rax, qword [rsp + 0x58]
mov qword [rcx], rax
mov rax, qword [rsp + 0x60]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x68]
mov qword [rcx + 0x10], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rbx
inc qword [rsp + 0x50]
jmp 0x14013fe87
test rcx, rcx
jne 0x14013fd5c
test rdx, rdx
je 0x14013fd5c
mov rax, qword [rsp + 0x58]
mov qword [r9 - 0x18], rax
mov rax, qword [rsp + 0x60]
mov qword [r9 - 0x10], rax
mov rax, qword [rsp + 0x68]
mov qword [r9 - 8], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rbx
sub qword [rsp + 0x48], 0x18
inc qword [rsp + 0x50]
jmp 0x14013fe87
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rbp - 0x68], xmm0
movsd xmm1, qword [rsp + 0x68]
movsd qword [rbp - 0x58], xmm1
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rbx
test r8, r8
je 0x14013fe2d
mov eax, dword [r8]
cmp eax, 1
jg 0x14013fe2d
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, r13
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 0x14013fe4a
cmp rdx, 1
jl 0x14013fe2d
add rcx, rcx
lea rax, [r8 + r8*2]
cmp rax, rcx
jge 0x14013fe2d
lea rax, [rdx + rdx*2]
shl rax, 3
mov rbx, r9
sub rbx, rax
test r8, r8
je 0x14013fe23
cmp r9, rbx
je 0x14013fe23
test r9, r9
je 0x14013fe23
test rbx, rbx
je 0x14013fe23
lea r8, [r8 + r8*2]
shl r8, 3
mov rdx, r9
mov rcx, rbx
call fcn.14023ffe0
mov r8, qword [rsp + 0x50]
mov r9, rbx
mov qword [rsp + 0x48], rbx
jmp 0x14013fe4a
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 1]
lea rcx, [rsp + 0x40]
call fcn.14003a8c0
mov r8, qword [rsp + 0x50]
mov r9, qword [rsp + 0x48]
lea rax, [r15 + r15*2]
lea rbx, [r9 + rax*8]
sub r8, r15
lea r8, [r8 + r8*2]
shl r8, 3
lea rcx, [rbx + 0x18]
mov rdx, rbx
call fcn.14023ffe0
mov rax, qword [rbp - 0x68]
mov qword [rbx], rax
mov rax, qword [rbp - 0x60]
mov qword [rbx + 8], rax
mov rax, qword [rbp - 0x58]
mov qword [rbx + 0x10], rax
inc qword [rsp + 0x50]
xor ebx, ebx
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x14013fe98
mov eax, dword [rax]
cmp eax, 1
jle 0x14013feab
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.14003a8c0
nop
mov ecx, dword [rbp + 0xb8]
add rsi, 0x18
inc r12d
cmp r12d, ecx
jbe 0x14013fbe0
mov r13d, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
call sub.NETAPI32.dll_NetApiBufferFree
cmp r13d, 0xea
je 0x14013fb60
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x14013fefb
mov eax, r14d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013fefb
mov rcx, qword [rbp - 0x50]
call fcn.14021b7f0
test r13d, r13d
jne 0x14013fff1
cmp qword [rbp - 0x70], 4
jl 0x14013ff5b
mov rdx, qword [rbp - 0x78]
mov r8, qword [rdx + 0x30]
mov rdx, qword [rdx + 0x38]
lea rcx, [rbp - 0x38]
call fcn.140086f40
or dword [rbp + 0xb0], 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.140141ce0
nop
test al, al
jne 0x14013ff5b
xor dil, dil
jmp 0x14013ff5e
mov dil, 1
test byte [rbp + 0xb0], 1
je 0x14013ff86
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x14013ff86
mov eax, r14d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013ff86
mov rcx, qword [rbp - 0x38]
call fcn.14021b7f0
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140140052
mov eax, r14d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140140052
mov rax, qword [rsp + 0x50]
lea rcx, [rax + rax*2]
mov rbx, qword [rsp + 0x48]
lea rsi, [rbx + rcx*8]
cmp rbx, rsi
je 0x14013ffe5
nop dword [rax + rax]
mov rcx, qword [rbx]
test rcx, rcx
je 0x14013ffdc
mov eax, r14d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013ffdc
mov rcx, qword [rbx]
call fcn.14021b7f0
add rbx, 0x18
cmp rbx, rsi
jne 0x14013ffc0
mov rcx, qword [rsp + 0x40]
call fcn.14021b7f0
jmp 0x140140052
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14014004f
mov eax, r14d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14014004f
mov rax, qword [rsp + 0x50]
lea rcx, [rax + rax*2]
mov rbx, qword [rsp + 0x48]
lea rdi, [rbx + rcx*8]
cmp rbx, rdi
je 0x140140045
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x14014003c
mov eax, r14d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14014003c
mov rcx, qword [rbx]
call fcn.14021b7f0
add rbx, 0x18
cmp rbx, rdi
jne 0x140140020
mov rcx, qword [rsp + 0x40]
call fcn.14021b7f0
xor dil, dil
mov rax, qword [rbp - 0x80]
test rax, rax
je 0x14014006f
lock xadd dword [rax], r14d
cmp r14d, 1
jne 0x14014006f
mov rcx, qword [rbp - 0x80]
call fcn.14021b7f0
movzx eax, dil
add rsp, 0x168
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret