Function at 0x180012ef4
Capabilities:
Access peb ldr_data
Encrypt data using rc4 prga
Get ntdll base address

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x80
mov rax, qword [0x18004dbe8]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov eax, 0x57
mov r14, rdx
mov word [rsp + 0x24], ax
mov ebp, r8d
mov byte [rsp + 0x20], 0x15
mov al, byte [0x18004d50e]
mov eax, dword [0x18004d528]
mov qword [rsp + 0x40], rax
mov al, byte [0x18004d50b]
movabs rax, 0xf5268611d273c
mov qword [rsp + 0x38], rax
mov eax, dword [str.eCu_]
mov word [rsp + 0x24], ax
movsx eax, byte [0x18004d50e]
mov dword [rsp + 0x28], eax
mov eax, dword [0x18004d598]
mov al, byte [0x18004d48f]
movsxd rax, dword [0x18004d5ac]
mov r8d, dword [0x18004d544]
mov qword [rsp + 0x30], rax
mov eax, dword [0x18004d598]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x28], 0xb8905b01
mov byte [rsp + 0x20], 0x7e
movzx eax, word [0x18004d50c]
movsxd rcx, dword [0x18004d544]
mov byte [rsp + 0x24], 0xc6
mov qword [rsp + 0x28], rcx
mov word [rsp + 0x24], cx
mov dword [rsp + 0x28], 0x4a0
mov dword [rsp + 0x28], 0x96b52d7c
movzx eax, word [0x18004d5c0]
mov qword [rsp + 0x28], rax
mov al, byte [0x18004d50b]
mov byte [rsp + 0x24], al
mov rax, qword [0x18004d580]
mov byte [rsp + 0x24], al
mov eax, dword [0x18004d5b4]
mov rax, qword [0x18004d5c8]
mov rax, qword [rsp + 0x40]
and eax, 0x43d7
mov qword [rsp + 0x40], rax
mov eax, dword [0x1807e0150]
mov dword [rsp + 0x24], eax
movzx eax, word [0x18004d5a0]
movzx eax, word [0x18004d50c]
xor byte [0x18004d50f], al
mov eax, dword [rsp + 0x24]
add eax, 0x1f47
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x24]
add eax, 0x490
mov dword [rsp + 0x28], eax
movzx eax, word [0x18095d266]
mov dword [0x18004d558], eax
mov eax, 0x2642
add ax, word [0x18004d550]
mov word [0x18004d50c], ax
mov eax, dword [rsp + 0x24]
add eax, 0x8292
mov dword [rsp + 0x24], eax
mov eax, 0x34d
movsx edx, byte [rsp + 0x20]
cwde
imul edx, eax
movzx eax, word [0x18004d570]
shr ax, 7
mov word [0x18004d59c], ax
mov word [0x18004d530], dx
mov qword [0x18004d590], 0x1f94c6cc
movsx rax, word [0x18004d530]
mov rdx, qword [rsp + 0x30]
sub rdx, rax
mov rax, qword [rsp + 0x30]
sub rdx, rax
mov qword [rsp + 0x30], rdx
mov eax, dword [rsp + 0x28]
imul ecx, eax, 0xf63a
mov eax, 0x1d32c7b4
sub eax, ecx
mov dword [rsp + 0x28], eax
mov rax, qword gs:[0x30]
xor ecx, ecx
mov edx, dword [0x18004d56c]
cmp edx, r8d
movdqa xmm0, xmmword [0x180037800]
movdqa xmm1, xmmword [0x1800377f0]
setne cl
mov r9, qword [rax + 0x60]
xor eax, eax
cmp edx, 0x3d
mov word [rsp + 0x68], 0x99
movdqu xmmword [rsp + 0x48], xmm0
setne al
movdqu xmmword [rsp + 0x58], xmm1
cmp ecx, eax
jne 0x18001315c
movsx rax, word [0x18004d58c]
mov ecx, 1
mov word [0x18004d574], cx
mov qword [rsp + 0x38], 0x81a8
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0x64
mov eax, dword [0x18004d5b4]
mov byte [0x18004d4f6], al
jmp 0x180013179
mov rcx, qword [rsp + 0x30]
xor eax, eax
test edx, edx
sete al
imul ecx, eax
mov rax, qword [rsp + 0x30]
sub ecx, eax
mov word [0x18004d59c], cx
mov rax, qword [r9 + 0x18]
mov rcx, qword [rax + 0x20]
mov al, byte [rsp + 0x20]
add al, 0x43
mov rdi, qword [rcx]
mov byte [rsp + 0x20], al
movsx rax, byte [0x18004d48f]
add qword [0x18004d548], rax
movzx eax, word [0x18004d50c]
lea rbx, [rdi - 0x10]
mov eax, dword [0x1807e0150]
mov dword [0x18004d534], 0x76af915c
mov qword [rsp + 0x30], rax
mov esi, dword [rsp + 0x28]
movsx rcx, byte [0x18004d50e]
mov rax, qword [rsp + 0x30]
cmp rcx, rax
jne 0x180013207
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x180013207
movsx ecx, byte [rsp + 0x20]
movsx eax, byte [0x18004d4f6]
add eax, ecx
mov dword [rsp + 0x28], eax
mov eax, dword [0x18004d598]
jmp 0x180013207
mov rcx, qword [rbx + 0x60]
call fcn.180012ae0
cmp eax, esi
je 0x180013239
mov rbx, qword [rbx]
cmp qword [rbx], rdi
jne 0x1800131f7
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.18002b130
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov edx, dword [rbx + 0x40]
mov r9d, ebp
mov rcx, qword [rbx + 0x30]
mov r8, r14
call fcn.180012148
jmp 0x18001320e