Function at 0x140049240
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov r14, r8
mov esi, edx
mov rdi, rcx
mov byte [0x140286cb0], 1
mov rax, qword [r8]
test rax, rax
je 0x140049286
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x140049286
movsxd rcx, dword [rax + 0x3c]
cmp rcx, 0x400
jle 0x14004953f
xor r15d, r15d
mov edx, dword [r15 + 0x50]
mov rcx, qword [r15 + 0x30]
mov r8d, 0x3000
mov r9d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x1400492b0
mov rbx, rax
xor r12d, r12d
jmp 0x1400492db
mov edx, dword [r15 + 0x50]
xor ecx, ecx
mov r8d, 0x3000
mov r9d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x140049556
mov rbx, rax
mov r12, rax
sub r12, qword [r15 + 0x30]
mov r8d, dword [r15 + 0x50]
mov rcx, rbx
xor edx, edx
call fcn.140159c20
mov qword [r15 + 0x30], rbx
mov rdx, qword [r14]
mov r8d, dword [r15 + 0x54]
mov rcx, rbx
call fcn.140159580
cmp word [r15 + 6], 0
je 0x140049348
lea r13, [r15 + 0x108]
add r13, 0x14
xor ebp, ebp
nop word cs:[rax + rax]
mov edx, dword [r13]
add rdx, qword [r14]
mov ecx, dword [r13 - 8]
mov r8d, dword [r13 - 4]
add rcx, rbx
call fcn.140159580
inc rbp
movzx eax, word [r15 + 6]
add r13, 0x28
cmp rbp, rax
jb 0x140049320
test r12, r12
je 0x140049415
mov r8, qword [r14]
test r8, r8
je 0x140049415
movzx eax, word [r8]
cmp eax, 0x5a4d
jne 0x140049415
movsxd rax, dword [r8 + 0x3c]
cmp rax, 0x400
jg 0x140049415
cmp dword [r8 + rax], 0x4550
jne 0x140049415
add r8, rax
cmp dword [r8 + 0xb0], 0
je 0x140049415
add r8, 0xb0
lea rcx, [rsp + 0x30]
mov rdx, rbx
call fcn.140049140
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
cmp rcx, rax
je 0x1400493de
nop word [rax + rax]
movzx edx, word [rcx]
and edx, 0xfff
add edx, dword [rcx + 4]
add qword [rbx + rdx], r12
add rcx, 0x10
cmp rcx, rax
jne 0x1400493c0
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140049415
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140049410
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
jae 0x1400497dc
add rdx, 0x27
mov rcx, rax
call fcn.1400b60a0
mov rcx, rbx
call fcn.140048ff0
movsxd rax, dword [rbx + 0x3c]
lea rdx, [rbx + rax]
add rdx, 0xa0
xor ecx, ecx
cmp dword [rbx + rax + 0xa0], 0
cmove rdx, rcx
mov ecx, dword [rdx]
mov eax, dword [rdx + 4]
mov edx, 0xaaaaaaab
imul rdx, rax
shr rdx, 0x23
dec edx
add rcx, rbx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_RtlAddFunctionTable]
mov r13d, dword [r15 + 0x28]
add r13, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r15, rax
lea r14, [rax + 0xa00]
mov dword [rsp + 0x30], 0
mov rbp, qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea r12, [rsp + 0x30]
mov edx, 4
mov rcx, r14
mov r8d, 0x40
mov r9, r12
call rbp
mov edx, 0x30
xor ecx, ecx
mov r8d, 0x3000
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
mov qword [r15 + 0xa00], rax
mov rcx, qword [0x140286ac8]
mov qword [rax + 8], rcx
mov rax, qword [str.eaUoVa2wMi7qMy29rCav5qwZWdhhv5Vk11111111111111111111]
mov rcx, qword [r15 + 0xa00]
mov qword [rcx], rax
mov rax, qword [r15 + 0xa00]
mov qword [rax + 0x10], rbx
mov r8, qword [rdi]
mov rcx, qword [r15 + 0xa00]
add rcx, 0x18
mov edx, 0x10
call fcn.14013fa68
mov rax, qword [r15 + 0xa00]
mov dword [rax + 0x28], esi
mov r8d, dword [rsp + 0x30]
mov edx, 4
mov rcx, r14
mov r9, r12
call rbp
xor ecx, ecx
xor edx, edx
call r13
nop
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, [rax + rcx]
xor r15d, r15d
cmp dword [rax + rcx], 0x4550
cmove r15, rdx
jmp 0x140049289
movabs rax, 0x41dac30ef6cbd002
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0xb0], rax
movabs rax, 0x5e46d965585ee181
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0xb8], rax
movabs rcx, 0x7881e37c99b9a247
mov qword [rsp + 0x30], rcx
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x30], rax
movabs rdx, 0x5e46d965585ee1dc
mov qword [rsp + 0x70], rdx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x70], rax
mov r8, qword [rsp + 0x70]
movaps xmm0, xmmword [rsp + 0xb0]
xorps xmm0, xmmword [r8]
movaps xmmword [rsp + 0xb0], xmm0
movabs r8, 0xae49712f099cc06
mov qword [rsp + 0x30], r8
mov r8, qword [rsp + 0x30]
mov qword [rsp + 0x70], r8
movabs r8, 0x3134ab00783280b2
mov qword [rsp + 0x30], r8
mov r8, qword [rsp + 0x30]
mov qword [rsp + 0x78], r8
movabs r8, 0x1882b981953b6c9b
mov qword [rsp + 0x30], r8
mov r8, qword [rsp + 0x30]
mov qword [rsp + 0x80], r8
movabs r8, 0x79e117b72f57e7da
mov qword [rsp + 0x30], r8
mov r8, qword [rsp + 0x30]
mov qword [rsp + 0x88], r8
movabs r8, 0xe3b1922b03cf6c6e
mov qword [rsp + 0x30], r8
mov r8, qword [rsp + 0x30]
mov qword [rsp + 0x90], r8
movabs r8, 0x30fbb0c4dde20414
mov qword [rsp + 0x30], r8
mov r8, qword [rsp + 0x30]
mov qword [rsp + 0x98], r8
movabs r8, 0xfe3bd203a37621c
mov qword [rsp + 0x30], r8
mov r8, qword [rsp + 0x30]
mov qword [rsp + 0xa0], r8
movabs r8, 0x8fed4ab74afe24b2
mov qword [rsp + 0x30], r8
mov r9, qword [rsp + 0x30]
mov qword [rsp + 0xa8], r9
mov qword [rsp + 0x30], rcx
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rdx
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x38], rcx
movabs rcx, 0x7df0cce2f6544ce9
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x40], rcx
movabs rcx, 0xa8072db5f77cbbe
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x48], rcx
movabs rcx, 0x91d0e65866bd4c0b
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x50], rcx
movabs rcx, 0x5f9790a1b5962460
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x58], rcx
movabs rcx, 0xfe3bd0e4852067d
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x28], r8
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movaps xmm0, xmmword [rsp + 0x70]
movaps xmm1, xmmword [rsp + 0x80]
movaps xmm2, xmmword [rsp + 0x90]
xorps xmm0, xmmword [rax]
movaps xmm3, xmmword [rsp + 0xa0]
movaps xmmword [rsp + 0x70], xmm0
xorps xmm1, xmmword [rax + 0x10]
movaps xmmword [rsp + 0x80], xmm1
xorps xmm2, xmmword [rax + 0x20]
movaps xmmword [rsp + 0x90], xmm2
xorps xmm3, xmmword [rax + 0x30]
movaps xmmword [rsp + 0xa0], xmm3
lea rdx, [rsp + 0x70]
lea r8, [rsp + 0xb0]
xor ecx, ecx
mov r9d, 0x10
call qword [sym.imp.USER32.dll_MessageBoxA]
xor ecx, ecx
call fcn.140134904
call fcn.140137a54
int3