Function at 0x140153a00
Capabilities:
Access peb ldr_data

Disassembly:
mov qword ss:[rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xb0
mov r14, rcx
xor dil, dil
xor ecx, ecx
mov dword [rbp + 0x6f], edi
mov rax, r8
mov qword [rbp - 0x59], rcx
mov rbx, rdx
mov qword [rbp - 0x49], r14
test byte [r14 + 0x20], 1
je 0x140153a4c
mov rax, qword [r14 + 0x18]
mov qword [rbp - 0x59], rax
jmp 0x140153ac4
test rax, rax
je 0x140153a57
mov qword [rbp - 0x59], rax
jmp 0x140153ac4
cmp dword [0x1402c2f94], 3
mov edx, 0x1000
mov qword [rbp - 0x31], rbx
mov qword [rbp - 0x29], rcx
jl 0x140153a7c
lea r8, [rbp - 0x31]
lea rcx, [rbp - 0x59]
call fcn.14016dca0
jmp 0x140153aaf
mov qword [rbp - 9], rcx
lea r9, [rbp - 0x31]
mov dword [rbp + 7], ecx
lea r8, [rbp - 0x11]
mov qword [rbp - 1], rcx
xorps xmm0, xmm0
lea rcx, [rbp - 0x59]
mov dword [rbp - 0x11], 0x30
movdqu xmmword [rbp + 0xf], xmm0
call qword [sym.imp.ntdll.dll_NtOpenProcess]
cmp eax, 0xc0000022
je 0x140153ac0
test eax, eax
movzx edi, dil
mov ecx, 1
cmovns edi, ecx
mov dword [rbp + 0x6f], edi
mov rax, qword [rbp - 0x59]
mov edi, 2
mov qword [rbp - 0x51], rdi
test rbx, rbx
je 0x140153af5
test rax, rax
je 0x140153af5
lea rcx, [rbp - 0x49]
mov r8d, edi
mov qword [rsp + 0x20], rcx
lea r9, [0x140153740]
mov rcx, rbx
mov rdx, rax
call sym.SystemInformer.exe_PhEnumGenericModules
xor edx, edx
lea rax, [rbp - 0x49]
lea r9, [0x140153740]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea ecx, [rdx + 4]
call sym.SystemInformer.exe_PhEnumGenericModules
lea r13, [0x1402bb990]
nop dword [rax]
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x110]
call qword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x18]
add rax, 0x10
mov qword [rbp - 0x41], rax
mov r12, qword [rax]
cmp r12, rax
je 0x140153d2f
nop
movzx eax, word [r12 + 0x58]
mov rbx, qword [r12 + 0x60]
test r13, r13
je 0x140153c19
mov rsi, qword ds:[r13]
cmp rax, rsi
jb 0x140153cf8
mov r14, qword [r13 + 8]
mov rcx, rsi
shr rcx, 4
test rcx, rcx
je 0x140153bca
nop dword [rax]
movdqu xmm0, xmmword [rbx]
movdqu xmm1, xmmword [r14]
pcmpeqd xmm1, xmm0
pmovmskb eax, xmm1
cmp eax, 0xffff
jne 0x140153ce6
add rbx, 0x10
add r14, 0x10
sub rcx, 1
jne 0x140153ba0
shr rsi, 1
and esi, 7
test rsi, rsi
je 0x140153c19
sub r14, rbx
nop dword [rax + rax]
movzx ecx, word [rbx]
movzx r15d, word [r14 + rbx]
cmp cx, r15w
je 0x140153c0f
call qword [sym.imp.ntdll.dll_RtlUpcaseUnicodeChar]
movzx ecx, r15w
movzx edi, ax
call qword [sym.imp.ntdll.dll_RtlUpcaseUnicodeChar]
cmp di, ax
jne 0x140153cf8
add rbx, 2
sub rsi, 1
jne 0x140153be0
nop dword [rax]
test r12, r12
je 0x140153d2b
movzx eax, word [r12 + 0x48]
lea rcx, [rbp - 0x21]
mov rdi, qword [r12 + 0x30]
mov esi, dword [r12 + 0x40]
mov qword [rbp - 0x21], rax
mov rax, qword [r12 + 0x50]
mov qword [rbp - 0x19], rax
call sym.SystemInformer.exe_PhDosPathNameToNtPathName
mov rcx, qword gs:[0x30]
mov rbx, rax
mov rcx, qword [rcx + 0x60]
mov rcx, qword [rcx + 0x110]
test rax, rax
je 0x140153d1e
call qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov rcx, qword [rbp + 0x67]
mov r9d, esi
mov r8, rdi
mov rdx, rbx
call sym.SystemInformer.exe_PhLoadModuleSymbolProvider
lea rcx, [rbx - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140153c9f
call fcn.14013d2a0
mov rdi, qword [rbp - 0x51]
add r13, 0x10
sub rdi, 1
mov qword [rbp - 0x51], rdi
jne 0x140153b20
cmp byte [rbp + 0x6f], 0
je 0x140153ccb
mov rcx, qword ds:[rbp - 0x59]
test rcx, rcx
je 0x140153ccb
call qword [sym.imp.ntdll.dll_NtClose]
mov rbx, qword [rsp + 0x100]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
and esi, 0xf
shl rcx, 4
add rsi, rcx
shr rsi, 1
jmp 0x140153bd0
mov r12, qword ds:[r12]
cmp r12, qword [rbp - 0x41]
jne 0x140153b60
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x110]
nop
call qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
jmp 0x140153c9f
mov rdi, qword [rbp - 0x51]
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x110]
call qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
jmp 0x140153ca3