Function at 0x14001ab90
Capabilities:
Access peb ldr_data
Enumerate files on windows
Get ntdll base address

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], r8
mov dword [rax + 8], ecx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r14d, r14d
mov r15, r8
mov qword [rbp - 0x29], r14
mov ebx, edx
mov rcx, qword gs:[0x60]
xor edx, edx
mov esi, r14d
mov qword [rbp - 0x31], r14
lea r8d, [r14 + 0x6a]
mov dword [rbp + 0x7f], r14d
mov r12b, r14b
mov dword [rbp + 0x67], r14d
mov rcx, qword [rcx + 0x30]
mov r13d, r14d
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
jne 0x14001ac00
mov ebx, 0xc0000017
jmp 0x14001ad4b
test bl, 1
je 0x14001ac1a
lea rdx, [rbp + 0x67]
lea rcx, [rbp + 0x7f]
call fcn.14001a850
test eax, eax
jns 0x14001af60
lea rdx, str.Device
lea rcx, [rbp - 0x21]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov eax, 0x30
mov qword [rbp - 9], r14
mov dword [rbp - 0x11], eax
lea r8, [rbp - 0x11]
lea rax, [rbp - 0x21]
mov dword [rbp + 7], 0x40
xorps xmm0, xmm0
mov qword [rbp - 1], rax
mov edx, 1
lea rcx, [rbp - 0x29]
movdqu xmmword [rbp + 0xf], xmm0
call qword [sym.imp.ntdll.dll_NtOpenDirectoryObject]
mov ebx, eax
test eax, eax
js 0x14001acf7
mov eax, 0x1000
mov r14d, eax
mov r8d, eax
jmp 0x14001acd0
mov rcx, qword [rbp - 0x29]
xor r9d, r9d
mov qword [rsp + 0x30], rax
mov r8d, r14d
mov dword [rbp - 0x39], eax
mov rdx, rsi
lea rax, [rbp - 0x39]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x20], 1
call qword [sym.imp.ntdll.dll_NtQueryDirectoryObject]
mov ebx, eax
cmp eax, 0x105
jne 0x14001ad77
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
add r14d, 0x1000
mov r8d, r14d
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
xor eax, eax
test rsi, rsi
jne 0x14001ac78
mov ebx, 0xc0000017
xor r14d, r14d
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp qword [rbp - 0x31], r14
je 0x14001ad2e
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbp - 0x31]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test rsi, rsi
je 0x14001ad4b
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x14001ad5a
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
mov rbx, qword [rsp + 0xe8]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80000000
add eax, ecx
test ecx, eax
jne 0x14001ad8e
cmp ebx, 0x8000001a
jne 0x14001af30
xor r14d, r14d
mov rbx, rsi
cmp word [rsi], r14w
je 0x14001af91
mov r15, qword [rbx + 0x18]
lea rdx, str.Directory
mov r14, qword [rbx + 8]
mov rcx, r15
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x14001add0
lea rdx, str.SymbolicLink
mov rcx, r15
call sub.msvcrt.dll__wcsicmp
test eax, eax
jne 0x14001aee9
mov r8d, 8
lea rdx, str.Harddisk
mov rcx, r14
call sub.msvcrt.dll__wcsnicmp
test eax, eax
jne 0x14001aee9
lea rcx, [r14 + 0x10]
xor r14d, r14d
movzx eax, word [rcx]
test ax, ax
je 0x14001aeec
lea r8d, [r14 + 0x30]
cmp ax, r8w
jne 0x14001ae17
cmp word [rcx + 2], r14w
jne 0x14001aeec
jmp 0x14001ae45
mov edx, r14d
cmp ax, r8w
jb 0x14001aeec
cmp ax, 0x39
ja 0x14001aeec
inc edx
cmp edx, 0xa
ja 0x14001aeec
add rcx, 2
movzx eax, word [rcx]
test ax, ax
jne 0x14001ae1a
mov r9, qword [rbx + 8]
lea r8, str.Device_sPartition_lu
mov edx, 0x6a
mov qword [rsp + 0x20], r14
mov rcx, rdi
call fcn.1400072fc
cmp qword [rbp - 0x31], r14
je 0x14001ae85
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbp - 0x31]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov qword [rbp - 0x31], r14
lea rdx, [rbp - 0x31]
mov rcx, rdi
call fcn.14001a320
test eax, eax
js 0x14001aeec
mov rax, qword [rbp - 0x31]
cmp dword [rax], 1
jne 0x14001aeec
mov r8d, dword [rax + 4]
mov edx, r14d
test r8d, r8d
je 0x14001aeec
mov r9, qword [0x14002b610]
lea rcx, [rax + 0x48]
mov r10, qword [0x14002b608]
cmp qword [rcx + 8], r10
jne 0x14001aed9
cmp qword [rcx + 0x10], r9
jne 0x14001aed9
test r12b, r12b
jne 0x14001af0c
mov eax, dword [rcx]
mov r12b, 1
mov r13, qword [rbx + 8]
mov dword [rbp + 0x67], eax
inc edx
add rcx, 0x90
cmp edx, r8d
jb 0x14001aebc
jmp 0x14001aeec
xor r14d, r14d
add rbx, 0x20
cmp word [rbx], r14w
jne 0x14001ad9e
test r12b, r12b
je 0x14001af91
mov r15, qword [rbp + 0x77]
mov ebx, r14d
jmp 0x14001af33
mov rcx, rdi
call fcn.14001a908
mov ebx, eax
test eax, eax
jns 0x14001af24
mov ebx, 0xc0000451
jmp 0x14001acf7
mov rax, qword [rbp + 0x77]
mov qword [rax], rdi
jmp 0x14001ad0f
xor r14d, r14d
test ebx, ebx
js 0x14001acf7
test r13, r13
je 0x14001af60
mov eax, dword [rbp + 0x67]
lea r8, str.Device_sPartition_lu
mov r9, r13
mov dword [rsp + 0x20], eax
mov edx, 0x6a
mov rcx, rdi
call fcn.1400072fc
jmp 0x14001af7f
mov eax, dword [rbp + 0x67]
lea r8, str.DeviceHarddisk_luPartition_lu
mov r9d, dword [rbp + 0x7f]
mov edx, 0x6a
mov rcx, rdi
mov dword [rsp + 0x20], eax
call fcn.1400072fc
mov ebx, eax
test eax, eax
js 0x14001acf7
mov qword [r15], rdi
jmp 0x14001ad0f
mov ebx, 0xc0000452
jmp 0x14001acf7