Function at 0x40b530
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc08
mov eax, dword [0x44d958]
xor eax, esp
mov dword [esp + 0xc04], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push edi
push 0x40
push 0x1000
push 0x400
push 0
push dword [0x636714]
call esi
push 0x40
push 0x1000
push 0x400
push 0
push dword [0x636714]
mov dword [0x6366fc], eax
call esi
push 0x40
push 0x1000
push 0x400
push 0
push dword [0x636714]
mov dword [0x636700], eax
call esi
push 0x40
push 0x1000
push 0x800
push 0
push dword [0x636714]
mov dword [0x636704], eax
call esi
push 0x40
push 0x1000
push 0x400
push 0
push dword [0x636714]
mov dword [0x6366f8], eax
call esi
push 0x40
push 0x1000
push 0x400
push 0
push dword [0x636714]
mov dword [0x636708], eax
call esi
push 0
push 0
push 0
push 0x40a160
push 0
push 0
mov dword [0x636710], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x400
lea eax, [esp + 0xc]
mov ecx, pe_nt_image_headers32
push eax
lea eax, [esp + 0x410]
mov esi, 0x409500
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.00430930
add esp, 0xc
xor esi, esi
cmp byte [esp + esi + 0x408], 0x90
jne 0x40b65d
cmp byte [esp + esi + 0x409], 0x90
jne 0x40b65d
cmp byte [esp + esi + 0x40a], 0x90
jne 0x40b65d
cmp byte [esp + esi + 0x40b], 0x90
je 0x40b668
inc esi
cmp esi, 0x400
jle 0x40b635
xor esi, esi
mov eax, dword [0x636704]
push 0
push dword [0x636708]
add eax, 0x300
push 0x400
push 0
mov dword [0x63670c], eax
lea eax, [esp + 0x18]
push 0x29
push eax
call fcn.00408240
push 0
push dword [0x6366fc]
lea eax, [esp + 0x28]
push 0x400
push 0
push 0x30
push eax
call fcn.00408240
push 0
push dword [0x636700]
lea eax, [esp + 0x40]
push 0x400
push 0
push 0x36
push eax
call fcn.00408240
add esp, 0x48
lea eax, [esp + 8]
push 0
push dword [0x636704]
push 0x400
push 0
push 0x37
push eax
call fcn.00408240
push 1
push dword [0x636688]
lea eax, [esp + 0x28]
push 0x400
push 0x20
push 0x31
push eax
call fcn.00408240
push 1
push dword [0x636680]
lea eax, [esp + 0x40]
push 0x400
push 0x24
push 0x34
push eax
call fcn.00408240
add esp, 0x48
lea eax, [esp + 8]
push 0
push dword [0x63670c]
push 0x400
push 0
push 0x47
push eax
call fcn.00408240
push 0
push dword [0x6366e4]
lea eax, [esp + 0x28]
push 0x400
push 0
push 0x51
push eax
call fcn.00408240
push str.loadstring
push 0x400
push 0x32
lea eax, [esp + 0x44]
push 0x32
push eax
call fcn.00408330
add esp, 0x44
push str.GetObjects
push 0x400
push 0x44
push 0x33
lea eax, [esp + 0x18]
push eax
call fcn.00408330
push str.getrawmetatable
push 0x400
push 0x58
lea eax, [esp + 0x28]
push 0x38
push eax
call fcn.00408330
push str.fullaccess
push 0x400
push 0x70
lea eax, [esp + 0x3c]
push 0x39
push eax
call fcn.00408330
push str.setrawmetatable
push 0x400
push 0x80
lea eax, [esp + 0x50]
push 0x46
push eax
call fcn.00408330
add esp, 0x50
lea eax, [esp + 8]
push 0
push esi
push eax
push dword [0x6366f8]
push dword [0x636714]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call fcn.0040b070
call fcn.00407a70
call fcn.0040b1f0
call fcn.0040b2d0
call fcn.0040b460
mov ecx, dword [esp + 0xc0c]
pop edi
pop esi
xor ecx, esp
call fcn.0042eb7c
mov esp, ebp
pop ebp
ret