Function at 0x140008310
Capabilities:
Access peb ldr_data
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x88
mov rax, qword [0x140047060]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea rcx, [0x140007e80]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call fcn.1400021d0
mov qword [0x1400503e0], rax
cmp rax, 0xffffffffffffffff
je 0x1400085a9
mov rax, qword gs:[0x60]
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x98], rsi
mov qword [rsp + 0x80], rdi
mov rcx, qword [rax + 0x18]
mov rbx, qword [rcx + 0x10]
cmp qword [rbx + 0x60], 0
je 0x14000841e
nop dword [rax]
mov r11, qword [rbx + 0x30]
movsxd rax, dword [r11 + 0x3c]
mov ecx, dword [rax + r11 + 0x88]
test ecx, ecx
je 0x140008410
mov r8d, dword [r11 + rcx + 0x20]
lea rax, [r11 + rcx]
mov r10d, dword [rax + 0x24]
add r8, r11
mov esi, dword [rax + 0x1c]
add r10, r11
mov edi, dword [rax + 0x18]
add rsi, r11
xor r9d, r9d
test rdi, rdi
je 0x140008410
nop dword [rax + rax]
mov edx, dword [r8]
mov ecx, 0x10ae9983
add rdx, r11
movzx eax, byte [rdx]
inc rdx
test al, al
je 0x140008400
nop word [rax + rax]
rol ecx, 5
lea rdx, [rdx + 1]
movsx eax, al
add ecx, eax
movzx eax, byte [rdx - 1]
test al, al
jne 0x1400083e0
cmp ecx, 0xdf196b2e
je 0x1400085c3
inc r9
add r8, 4
add r10, 2
cmp r9, rdi
jb 0x1400083c0
mov rbx, qword [rbx]
cmp qword [rbx + 0x60], 0
jne 0x140008380
xor edx, edx
lea rcx, [rsp + 0x60]
call rdx
lea rcx, [rsp + 0x5c]
mov word [rsp + 0x5c], 0x32
mov byte [rsp + 0x5e], 0
call fcn.140015d50
movzx ecx, word [rsp + 0x62]
cmp ecx, eax
je 0x140008569
mov dword [rsp + 0x50], 0x20202122
xor ecx, ecx
mov word [rsp + 0x54], 0x100
nop dword [rax + rax]
lea eax, [rcx + 0x10]
xor byte [rsp + rcx + 0x50], al
inc rcx
cmp rcx, 4
jb 0x140008460
lea rcx, [rsp + 0x50]
mov byte [rsp + 0x55], 0
call fcn.140015d50
movzx ecx, word [rsp + 0x60]
cmp ecx, eax
je 0x140008569
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rbx, qword [rcx + 0x10]
cmp qword [rbx + 0x60], 0
je 0x14000854d
nop dword [rax + rax]
mov r11, qword [rbx + 0x30]
movsxd rax, dword [r11 + 0x3c]
mov ecx, dword [rax + r11 + 0x88]
test ecx, ecx
je 0x14000853f
mov r8d, dword [r11 + rcx + 0x20]
lea rax, [r11 + rcx]
mov r10d, dword [rax + 0x24]
add r8, r11
mov esi, dword [rax + 0x1c]
add r10, r11
mov edi, dword [rax + 0x18]
add rsi, r11
xor r9d, r9d
test rdi, rdi
je 0x14000853f
nop dword [rax + rax]
mov edx, dword [r8]
mov eax, 0x10ae9983
add rdx, r11
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x14000852f
nop word [rax + rax]
rol eax, 5
lea rdx, [rdx + 1]
movsx ecx, cl
add eax, ecx
movzx ecx, byte [rdx - 1]
test cl, cl
jne 0x140008510
cmp eax, 0x9865787d
je 0x1400085d2
inc r9
add r8, 4
add r10, 2
cmp r9, rdi
jb 0x1400084f0
mov rbx, qword [rbx]
cmp qword [rbx + 0x60], 0
jne 0x1400084b0
xor ebx, ebx
lea rcx, [rsp + 0x58]
mov word [rsp + 0x58], 0x30
mov byte [rsp + 0x5a], 0
call fcn.140015d50
mov ecx, eax
call rbx
lea rax, [rsp + 0x58]
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x48], rax
call fcn.140008610
mov rdi, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x90]
mov rcx, qword [0x1400503e0]
test rax, rax
jne 0x1400085e1
call fcn.1400024e0
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14000c610
add rsp, 0x88
ret
movzx eax, word [r10]
mov edx, dword [rsi + rax*4]
add rdx, r11
jmp 0x140008420
movzx eax, word [r10]
mov ebx, dword [rsi + rax*4]
add rbx, r11
jmp 0x14000854f
call fcn.1400024e0
mov eax, dword [0x14004ca60]
nop dword [rax]
test eax, eax
je 0x1400085f0
call fcn.140007ea0
xor eax, eax
mov dword [0x14004ca60], eax
jmp 0x1400085f0