Function at 0x140022a80
Capabilities:
Access peb ldr_data
Hash data using djb2
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rax, qword [0x14003d010]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov dword [rbp - 0x5d], edx
mov dword [rbp - 0x61], ecx
xor r14d, r14d
mov r15d, r14d
mov dword [rbp - 0x65], r14d
mov rax, qword gs:[0x60]
test rax, rax
je 0x140022dea
mov rax, qword [rax + 0x18]
test rax, rax
je 0x140022dea
lea rdi, [rax + 0x20]
mov qword [rbp - 0x59], rdi
mov r12, qword [rdi]
cmp r12, rdi
je 0x140022dea
movzx edi, byte [rbp - 0x69]
mov rax, qword [rbp - 0x59]
nop dword [rax]
lea r13, [r12 - 0x10]
test r13, r13
je 0x140022ddd
mov rdx, qword [r13 + 0x50]
test rdx, rdx
je 0x140022ddd
lea rcx, [rbp + 0xf]
call fcn.140008b30
nop
lea rcx, [rbp - 0x69]
call fcn.140004340
mov rsi, rax
lea rdx, [rbp - 0x29]
lea rcx, [rbp + 0xf]
call fcn.140008a10
mov rbx, qword [rax]
lea rdx, [rbp - 0x21]
lea rcx, [rbp + 0xf]
call fcn.140008a90
mov r9, rsi
mov r8, rbx
mov rdx, qword [rax]
lea rcx, [rbp - 0x19]
call fcn.14000b740
nop
mov rsi, qword [rbp - 9]
lea rcx, [rbp - 0x19]
call fcn.140008770
mov rbx, rax
mov qword [rbp + 7], 0xffffffffffffffff
test rsi, rsi
je 0x140022dc6
lea rcx, [rsi - 1]
mov qword [rbp - 0x51], rcx
lea rdx, [rbp - 0x51]
lea rcx, [rbp + 7]
call fcn.1400073b0
mov rsi, qword [rax]
add rsi, rbx
cmp byte [rsi], 0x5c
je 0x140022bb3
cmp rsi, rbx
je 0x140022dc6
dec rsi
cmp byte [rsi], 0x5c
jne 0x140022ba2
sub rsi, rbx
cmp rsi, 0xffffffffffffffff
je 0x140022dc6
inc rsi
lea rcx, [rbp - 0x68]
call fcn.140004340
mov r8, rax
movzx edx, dil
lea rcx, [rbp - 0x49]
call fcn.14000de30
nop
mov rdx, rsi
lea rcx, [rbp - 0x19]
call fcn.14000b1e0
mov r8, 0xffffffffffffffff
mov rdx, rsi
lea rcx, [rbp - 0x19]
call fcn.14000b170
mov rbx, rax
lea rcx, [rbp - 0x19]
call fcn.140008770
lea rdx, [rsi + rax]
mov r8, rbx
lea rcx, [rbp - 0x49]
call fcn.14000ce40
nop
or r15d, 1
mov dword [rbp - 0x65], r15d
lea rcx, [rbp - 0x19]
call fcn.140009890
lea rcx, [rbp - 0x49]
call fcn.140009890
lea rcx, [rbp - 0x19]
call fcn.14000a2f0
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x19]
call fcn.14000a8b0
lea rcx, [rbp - 0x49]
call fcn.140009050
lea rcx, [rbp - 0x19]
call fcn.140004340
lea rcx, [rbp - 0x19]
call fcn.140008770
mov rsi, rax
lea rcx, [rbp - 0x19]
call fcn.140004340
lea rcx, [rbp - 0x19]
call fcn.140008770
mov r15, rax
add r15, qword [rbp - 9]
lea rcx, [rbp - 0x19]
call fcn.140004340
lea rcx, [rbp - 0x19]
call fcn.140008770
mov rbx, rax
cmp rax, r15
je 0x140022cb7
nop word [rax + rax]
movzx ecx, byte [rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov byte [rsi], al
lea rsi, [rsi + 1]
inc rbx
cmp rbx, r15
jne 0x140022ca0
lea rcx, [rbp - 0x19]
call fcn.140008e50
mov rcx, rax
test rax, rax
jne 0x140022ccd
mov eax, r14d
jmp 0x140022cf0
mov eax, 0x1505
movsx edx, byte [rcx]
inc rcx
test edx, edx
je 0x140022cf0
nop dword [rax]
imul eax, eax, 0x21
add eax, edx
movsx edx, byte [rcx]
lea rcx, [rcx + 1]
test edx, edx
jne 0x140022ce0
cmp eax, dword [rbp - 0x61]
jne 0x140022dad
mov rbx, qword [r13 + 0x30]
test rbx, rbx
je 0x140022e72
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x140022e72
movsxd rax, dword [rbx + 0x3c]
add rax, rbx
je 0x140022e72
cmp dword [rax], 0x4550
jne 0x140022e72
mov ecx, dword [rax + 0x88]
lea rax, [rcx + rbx]
test rax, rax
je 0x140022e72
test rcx, rcx
je 0x140022e72
mov r11d, dword [rax + 0x1c]
add r11, rbx
mov esi, dword [rax + 0x24]
add rsi, rbx
mov r9d, dword [rax + 0x20]
add r9, rbx
mov r8, r14
mov r10d, dword [rax + 0x18]
test r10, r10
je 0x140022dad
nop dword [rax]
mov ecx, dword [r9 + r8*4]
add rcx, rbx
jne 0x140022d7e
mov eax, r14d
jmp 0x140022da0
mov eax, 0x1505
movsx edx, byte [rcx]
inc rcx
test edx, edx
je 0x140022da0
nop dword [rax]
imul eax, eax, 0x21
add eax, edx
movsx edx, byte [rcx]
lea rcx, [rcx + 1]
test edx, edx
jne 0x140022d90
cmp eax, dword [rbp - 0x5d]
je 0x140022e19
inc r8
cmp r8, r10
jb 0x140022d70
lea rcx, [rbp - 0x19]
call fcn.140009050
nop
lea rcx, [rbp + 0xf]
call fcn.140008b00
mov r15d, dword [rbp - 0x65]
jmp 0x140022dd9
lea rcx, [rbp - 0x19]
call fcn.140009050
nop
lea rcx, [rbp + 0xf]
call fcn.140008b00
mov rax, qword [rbp - 0x59]
mov r12, qword [r12]
cmp r12, rax
jne 0x140022b00
xor eax, eax
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400318f0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
movzx eax, word [rsi + r8*2]
mov ecx, dword [r11 + rax*4]
mov ebx, dword [rcx + rbx + 4]
mov edx, 0xb
xor ecx, ecx
lea r9d, [rdx + 0x35]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
mov edx, ebx
shr edx, 8
mov ecx, ebx
shr ecx, 0x10
mov eax, ebx
shr eax, 0x18
mov dword [r14], 0xb8d18b4c
mov byte [r14 + 4], bl
mov byte [r14 + 5], dl
mov byte [r14 + 6], cl
mov byte [r14 + 7], al
mov word [r14 + 8], 0x50f
mov byte [r14 + 0xa], 0xc3
lea rcx, [rbp - 0x19]
call fcn.140009050
nop
lea rcx, [rbp + 0xf]
call fcn.140008b00
mov rax, r14
jmp 0x140022dec