Function at 0x141db54a0
Capabilities:
Enumerate network shares

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xf8
xor ebx, ebx
mov dword [rbp + 0x67], ebx
mov rax, qword [rcx + 0x10]
mov rcx, qword [rcx + 8]
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], rcx
mov r8d, 0x5c
mov dword [rsp + 0x20], 1
mov r9d, 1
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x29]
call fcn.141d43810
nop
mov r14, 0xffffffffffffffff
cmp qword [rbp + 0xf], 3
jl 0x141db5a4f
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rbx
mov rdi, qword [rbp + 7]
mov qword [rbp - 0x59], 2
lea rax, [0x140079860]
mov qword [rbp - 0x51], rax
mov rdx, qword [rdi + 0x20]
add rdx, 2
xor r8d, r8d
lea rcx, [rbp - 0x49]
call fcn.141d37e90
lea rbx, [0x140001220]
mov rax, qword [rbp - 0x41]
test rax, rax
cmovne rbx, rax
movaps xmm0, xmmword [rbp - 0x59]
movdqa xmmword [rbp - 0x29], xmm0
mov rdx, rbx
lea rcx, [rbp - 0x29]
call fcn.141d39240
lea rcx, [rbx + 4]
mov r8, qword [rdi + 0x20]
test r8, r8
je 0x141db557c
add r8, r8
mov rdx, qword [rdi + 0x28]
call fcn.141ee8ce0
nop
mov dword [rbp + 0x67], 2
xor ebx, ebx
mov dword [rbp + 0x6f], ebx
mov dword [rbp + 0x7f], ebx
mov dword [rbp + 0x77], ebx
mov rdi, qword [rbp + 0x67]
lea rcx, [rbp - 0x49]
call fcn.141d45210
mov rcx, rax
lea rax, [rbp + 0x77]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
lea r8, [rbp - 0x31]
mov edx, 1
call sub.NETAPI32.dll_NetShareEnum
mov r13d, eax
mov dword [rbp - 0x69], eax
test eax, eax
je 0x141db55e2
cmp eax, 0xea
jne 0x141db58d0
mov rsi, qword [rbp - 0x31]
mov r12d, 1
mov ecx, dword [rbp + 0x6f]
cmp ecx, r12d
jb 0x141db58d0
movabs r13, 0x2aaaaaaaaaaaaaab
cmp dword [rsi + 8], 0
jne 0x141db58bc
mov r8, r14
mov rdx, qword [rsi]
lea rcx, [rbp - 0x19]
call fcn.141d3e900
nop
mov rcx, qword [rax]
mov qword [rsp + 0x58], rcx
mov rcx, qword [rax + 8]
mov qword [rbp - 0x79], rcx
mov rcx, qword [rax + 0x10]
mov qword [rbp - 0x71], rcx
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
mov eax, dword [rbp + 0x67]
or eax, 0x28
mov dword [rbp + 0x67], eax
test al, 0x10
je 0x141db566a
and dword [rbp + 0x67], 0xffffffef
test rdi, rdi
je 0x141db566a
mov eax, r14d
lock xadd dword [rdi], eax
cmp eax, 1
jne 0x141db566a
mov rcx, rdi
call fcn.141ec82c8
nop
mov eax, dword [rbp + 0x67]
test al, 8
je 0x141db5694
and dword [rbp + 0x67], 0xfffffff7
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x141db5694
mov eax, r14d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x141db5694
mov rcx, qword [rbp - 0x19]
call fcn.141ec82c8
nop
mov r15, qword [rsp + 0x50]
mov r8, qword [rsp + 0x40]
test r8, r8
je 0x141db5767
mov eax, dword [r8]
mov r8, qword [rsp + 0x40]
cmp eax, 1
jg 0x141db5767
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 0x141db5727
lea rax, [rcx + rcx*2]
lea rcx, [r9 + rax*8]
mov rax, qword [rsp + 0x58]
mov qword [rcx], rax
mov rax, qword [rbp - 0x79]
mov qword [rcx + 8], rax
mov rax, qword [rbp - 0x71]
mov qword [rcx + 0x10], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rbp - 0x71], rbx
inc qword [rsp + 0x50]
jmp 0x141db5895
test rcx, rcx
jne 0x141db5767
test rdx, rdx
je 0x141db5767
mov rax, qword [rsp + 0x58]
mov qword [r9 - 0x18], rax
mov rax, qword [rbp - 0x79]
mov qword [r9 - 0x10], rax
mov rax, qword [rbp - 0x71]
mov qword [r9 - 8], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rbp - 0x71], rbx
sub qword [rsp + 0x48], 0x18
inc qword [rsp + 0x50]
jmp 0x141db5895
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rbp - 0x19], xmm0
movsd xmm1, qword [rbp - 0x71]
movsd qword [rbp - 9], xmm1
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rbp - 0x71], rbx
test r8, r8
je 0x141db5839
mov eax, dword [r8]
cmp eax, 1
jg 0x141db5839
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
mov r10, rdx
sar r10, 2
mov rax, r10
shr rax, 0x3f
add r10, rax
mov rcx, qword [r8 + 8]
mov rax, rcx
sub rax, r10
mov rdx, qword [rsp + 0x50]
sub rax, rdx
cmp rax, 1
jge 0x141db5858
cmp r10, 1
jl 0x141db5839
add rcx, rcx
lea rax, [rdx + rdx*2]
cmp rax, rcx
jge 0x141db5839
lea rax, [r10 + r10*2]
shl rax, 3
mov rbx, r9
sub rbx, rax
test rdx, rdx
je 0x141db582f
cmp r9, rbx
je 0x141db582f
test r9, r9
je 0x141db582f
test rbx, rbx
je 0x141db582f
lea r8, [rdx + rdx*2]
shl r8, 3
mov rdx, r9
mov rcx, rbx
call fcn.141ee8ce0
mov rdx, qword [rsp + 0x50]
mov r9, rbx
mov qword [rsp + 0x48], rbx
jmp 0x141db5858
xor r9d, r9d
xor edx, edx
mov r8d, 1
lea rcx, [rsp + 0x40]
call fcn.141d2d8a0
mov rdx, qword [rsp + 0x50]
mov r9, qword [rsp + 0x48]
lea rax, [r15 + r15*2]
lea rbx, [r9 + rax*8]
sub rdx, r15
lea r8, [rdx + rdx*2]
shl r8, 3
lea rcx, [rbx + 0x18]
mov rdx, rbx
call fcn.141ee8ce0
mov rax, qword [rbp - 0x19]
mov qword [rbx], rax
mov rax, qword [rbp - 0x11]
mov qword [rbx + 8], rax
mov rax, qword [rbp - 9]
mov qword [rbx + 0x10], rax
inc qword [rsp + 0x50]
xor ebx, ebx
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x141db58a6
mov eax, dword [rax]
cmp eax, 1
jle 0x141db58b9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.141d2d8a0
nop
mov ecx, dword [rbp + 0x6f]
add rsi, 0x18
inc r12d
cmp r12d, ecx
jbe 0x141db5602
mov r13d, dword [rbp - 0x69]
mov rcx, qword [rbp - 0x31]
call sub.NETAPI32.dll_NetApiBufferFree
cmp r13d, 0xea
je 0x141db5592
mov rcx, qword [rbp - 0x49]
test rcx, rcx
je 0x141db5904
mov eax, r14d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x141db5904
mov rcx, qword [rbp - 0x49]
call fcn.141ec82c8
test r13d, r13d
jne 0x141db59f1
cmp qword [rbp + 0xf], 4
jl 0x141db5961
mov rdx, qword [rbp + 7]
mov r8, qword [rdx + 0x30]
mov rdx, qword [rdx + 0x38]
lea rcx, [rbp - 0x49]
call fcn.141d37ba0
or dword [rbp + 0x67], 0x41
mov rcx, qword [rbp - 0x41]
mov rax, qword [rbp - 0x39]
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x51], rcx
movaps xmm0, xmmword [rbp - 0x59]
movdqa xmmword [rbp - 0x59], xmm0
xor r8d, r8d
lea rdx, [rbp - 0x59]
lea rcx, [rsp + 0x40]
call fcn.141db6530
nop
test al, al
jne 0x141db5961
xor dil, dil
jmp 0x141db5964
mov dil, 1
test byte [rbp + 0x67], 1
je 0x141db5989
mov rcx, qword [rbp - 0x49]
test rcx, rcx
je 0x141db5989
mov eax, r14d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x141db5989
mov rcx, qword [rbp - 0x49]
call fcn.141ec82c8
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x141db5a52
mov eax, r14d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x141db5a52
mov rax, qword [rsp + 0x50]
lea rcx, [rax + rax*2]
mov rbx, qword [rsp + 0x48]
lea rsi, [rbx + rcx*8]
cmp rbx, rsi
je 0x141db59e5
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x141db59dc
mov eax, r14d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x141db59dc
mov rcx, qword [rbx]
call fcn.141ec82c8
add rbx, 0x18
cmp rbx, rsi
jne 0x141db59c0
mov rcx, qword [rsp + 0x40]
call fcn.141ec82c8
jmp 0x141db5a52
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x141db5a4f
mov eax, r14d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x141db5a4f
mov rax, qword [rsp + 0x50]
lea rcx, [rax + rax*2]
mov rbx, qword [rsp + 0x48]
lea rdi, [rbx + rcx*8]
cmp rbx, rdi
je 0x141db5a45
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x141db5a3c
mov eax, r14d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x141db5a3c
mov rcx, qword [rbx]
call fcn.141ec82c8
add rbx, 0x18
cmp rbx, rdi
jne 0x141db5a20
mov rcx, qword [rsp + 0x40]
call fcn.141ec82c8
xor dil, dil
mov rax, qword [rbp - 1]
test rax, rax
je 0x141db5a6f
lock xadd dword [rax], r14d
cmp r14d, 1
jne 0x141db5a6f
mov rcx, qword [rbp - 1]
call fcn.141ec82c8
movzx eax, dil
add rsp, 0xf8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret