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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1064
call fcn.0042f260
mov eax, dword [0x44d958]
xor eax, esp
mov dword [esp + 0x1060], eax
push ebx
mov ebx, dword [0x63672c]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
lea eax, [ebx + 0x14be7c]
mov dword [esp + 0x18], eax
lea eax, [ebx + 0x2fa63d]
mov dword [esp + 0x14], eax
lea eax, [ebx + 0x1f452f]
mov dword [esp + 0x1c], eax
lea eax, [ebx + 0xf941c]
mov dword [esp + 0x20], eax
lea eax, [ebx + 0x310087]
mov dword [esp + 0x24], eax
lea eax, [ebx + 0x30af8c]
mov dword [esp + 0x28], eax
lea eax, [ebx + 0x30ae70]
mov dword [esp + 0x2c], eax
lea eax, [ebx + 0x30ce0d]
mov dword [esp + 0x30], eax
lea eax, [ebx + 0x2fb820]
mov dword [esp + 0x34], eax
lea eax, [ebx + 0x2fc17c]
mov dword [esp + 0x38], eax
lea eax, [ebx + 0x2fd54d]
push 0x1c
mov dword [esp + 0x40], eax
add ebx, 0x1000
lea eax, [esp + 0x48]
push eax
push ebx
push dword [0x636714]
call edi
mov esi, dword [esp + 0x50]
lea eax, [esp + 0x44]
push 0x1c
push eax
mov eax, dword [0x63672c]
add eax, 0x16a7000
push eax
push dword [0x636714]
call edi
push 0x40
push 0x1000
push 0x400
add ebx, esi
mov dword [esp + 0x6c], 0xe9
push 0
push dword [0x636714]
mov dword [0x636718], ebx
lea edi, [esp + 0x7c]
mov word [esp + 0x78], 0x9000
mov ecx, 0x200
mov esi, 0x408640
mov dword [esp + 0x54], ebx
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
lea eax, [esp + 0x68]
push 0x800
push eax
lea eax, [esp + 0x870]
mov dword [esp + 0x18], edi
push eax
call fcn.00430930
add esp, 0xc
xor esi, esi
cmp byte [esp + esi + 0x868], 0x90
jne 0x40bbae
cmp byte [esp + esi + 0x869], 0x90
jne 0x40bbae
cmp byte [esp + esi + 0x86a], 0x90
jne 0x40bbae
cmp byte [esp + esi + 0x86b], 0x90
je 0x40bbb9
inc esi
cmp esi, 0x800
jle 0x40bb86
xor esi, esi
push 0
push ebx
push 0x800
push 0
lea eax, [esp + 0x78]
push 3
push eax
call fcn.00408240
mov eax, dword [ebp + 8]
push 0
add eax, 0xfffff000
push eax
push 0x800
push 0
lea eax, [esp + 0x90]
push 4
push eax
call fcn.00408240
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [esp + 0x98]
add esp, 0x30
push 0
push esi
push eax
push edi
push dword [0x636714]
call ebx
push 0x800
lea eax, [esp + 0x6c]
mov esi, 0x4087b0
push eax
lea eax, [esp + 0x870]
add esi, 3
mov ecx, 0x200
lea edi, [esp + 0x70]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.00430930
add esp, 0xc
xor edi, edi
nop dword [eax]
cmp byte [esp + edi + 0x868], 0x90
jne 0x40bc68
cmp byte [esp + edi + 0x869], 0x90
jne 0x40bc68
cmp byte [esp + edi + 0x86a], 0x90
jne 0x40bc68
cmp byte [esp + edi + 0x86b], 0x90
je 0x40bc73
inc edi
cmp edi, 0x800
jle 0x40bc40
xor edi, edi
push 0x40
push 0x1000
push 0x800
push 0
push dword [0x636714]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 1
push dword [esp + 0x14]
mov esi, eax
lea eax, [esp + 0x70]
push 0x800
mov ecx, esi
sub ecx, dword [esp + 0x24]
push 0x5c
sub ecx, 5
push 0x75
push eax
mov dword [esp + 0x79], ecx
call fcn.00408240
push 1
push 0
push 0x800
push 0x60
lea eax, [esp + 0x90]
push 0x76
push eax
call fcn.00408240
add esp, 0x30
lea eax, [esp + 0x68]
push 0
push edi
push eax
push esi
push dword [0x636714]
call ebx
push 0
push 6
lea eax, [esp + 0x68]
push eax
push dword [esp + 0x24]
push dword [0x636714]
call ebx
push 0x800
lea eax, [esp + 0x6c]
mov esi, 0x408880
push eax
lea eax, [esp + 0x870]
add esi, 6
mov ecx, 0x200
lea edi, [esp + 0x70]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.00430930
add esp, 0xc
xor edi, edi
nop word [eax + eax]
cmp byte [esp + edi + 0x868], 0x90
jne 0x40bd58
cmp byte [esp + edi + 0x869], 0x90
jne 0x40bd58
cmp byte [esp + edi + 0x86a], 0x90
jne 0x40bd58
cmp byte [esp + edi + 0x86b], 0x90
je 0x40bd63
inc edi
cmp edi, 0x800
jle 0x40bd30
xor edi, edi
push 0x40
push 0x1000
push 0x800
push 0
push dword [0x636714]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 1
push dword [esp + 0x14]
mov esi, eax
lea eax, [esp + 0x70]
push 0x800
mov ecx, esi
sub ecx, dword [esp + 0x20]
push 0x5c
sub ecx, 5
push 0x75
push eax
mov dword [esp + 0x79], ecx
call fcn.00408240
push 1
push 0
push 0x800
push 0x60
lea eax, [esp + 0x90]
push 0x76
push eax
call fcn.00408240
push 0
push dword [esp + 0x74]
lea eax, [esp + 0xa0]
push 0x800
push 0
push 3
push eax
call fcn.00408240
mov eax, dword [esp + 0x5c]
add esp, 0x48
add eax, 5
push 0
push eax
push 0x800
push 0
lea eax, [esp + 0x78]
push 0x78
push eax
call fcn.00408240
add esp, 0x18
lea eax, [esp + 0x68]
push 0
push edi
push eax
push esi
push dword [0x636714]
call ebx
push 0
push 6
lea eax, [esp + 0x68]
push eax
push dword [esp + 0x20]
push dword [0x636714]
call ebx
push 0x800
lea eax, [esp + 0x6c]
mov esi, 0x408960
push eax
lea eax, [esp + 0x870]
add esi, 3
mov ecx, 0x200
lea edi, [esp + 0x70]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.00430930
add esp, 0xc
xor edi, edi
cmp byte [esp + edi + 0x868], 0x90
jne 0x40be7b
cmp byte [esp + edi + 0x869], 0x90
jne 0x40be7b
cmp byte [esp + edi + 0x86a], 0x90
jne 0x40be7b
cmp byte [esp + edi + 0x86b], 0x90
je 0x40be86
inc edi
cmp edi, 0x800
jle 0x40be53
xor edi, edi
push 0x40
push 0x1000
push 0x800
push 0
push dword [0x636714]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 1
push dword [esp + 0x14]
mov esi, eax
lea eax, [esp + 0x70]
push 0x800
mov ecx, esi
sub ecx, dword [esp + 0x28]
push 0x5c
sub ecx, 5
push 0x75
push eax
mov dword [esp + 0x79], ecx
call fcn.00408240
push 1
push 0
push 0x800
push 0x60
lea eax, [esp + 0x90]
push 0x76
push eax
call fcn.00408240
add esp, 0x30
lea eax, [esp + 0x68]
push 0
push edi
push eax
push esi
push dword [0x636714]
call ebx
push 0
push 6
lea eax, [esp + 0x68]
push eax
push dword [esp + 0x28]
push dword [0x636714]
call ebx
push 0x800
lea eax, [esp + 0x6c]
mov esi, 0x408a20
push eax
lea eax, [esp + 0x870]
add esi, 3
mov ecx, 0x200
lea edi, [esp + 0x70]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.00430930
add esp, 0xc
xor edi, edi
nop word [eax + eax]
cmp byte [esp + edi + 0x868], 0x90
jne 0x40bf68
cmp byte [esp + edi + 0x869], 0x90
jne 0x40bf68
cmp byte [esp + edi + 0x86a], 0x90
jne 0x40bf68
cmp byte [esp + edi + 0x86b], 0x90
je 0x40bf73
inc edi
cmp edi, 0x800
jle 0x40bf40
xor edi, edi
push 0x40
push 0x1000
push 0x800
push 0
push dword [0x636714]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 1
push dword [esp + 0x14]
mov esi, eax
lea eax, [esp + 0x70]
push 0x800
mov ecx, esi
sub ecx, dword [esp + 0x2c]
push 0x5c
sub ecx, 5
push 0x75
push eax
mov dword [esp + 0x79], ecx
call fcn.00408240
push 1
push 0
push 0x800
push 0x60
lea eax, [esp + 0x90]
push 0x76
push eax
call fcn.00408240
add esp, 0x30
lea eax, [esp + 0x68]
push 0
push edi
push eax
push esi
push dword [0x636714]
call ebx
push 0
push 6
lea eax, [esp + 0x68]
push eax
push dword [esp + 0x2c]
push dword [0x636714]
call ebx
push 0x800
lea eax, [esp + 0x6c]
mov esi, 0x408b00
push eax
lea eax, [esp + 0x870]
add esi, 3
mov ecx, 0x200
lea edi, [esp + 0x70]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.00430930
add esp, 0xc
xor edi, edi
nop word [eax + eax]
cmp byte [esp + edi + 0x868], 0x90
jne 0x40c058
cmp byte [esp + edi + 0x869], 0x90
jne 0x40c058
cmp byte [esp + edi + 0x86a], 0x90
jne 0x40c058
cmp byte [esp + edi + 0x86b], 0x90
je 0x40c063
inc edi
cmp edi, 0x800
jle 0x40c030
xor edi, edi
push 0x40
push 0x1000
push 0x800
push 0
push dword [0x636714]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 1
push dword [esp + 0x14]
mov esi, eax
lea eax, [esp + 0x70]
push 0x800
mov ecx, esi
sub ecx, dword [esp + 0x30]
push 0x5c
sub ecx, 5
push 0x75
push eax
mov dword [esp + 0x79], ecx
call fcn.00408240
push 1
push 0
push 0x800
push 0x60
lea eax, [esp + 0x90]
push 0x76
push eax
call fcn.00408240
add esp, 0x30
lea eax, [esp + 0x68]
push 0
push edi
push eax
push esi
push dword [0x636714]
call ebx
push 0
push 6
lea eax, [esp + 0x68]
push eax
push dword [esp + 0x30]
push dword [0x636714]
call ebx
push 0x800
lea eax, [esp + 0x6c]
mov esi, 0x408bd0
push eax
lea eax, [esp + 0x870]
add esi, 3
mov ecx, 0x200
lea edi, [esp + 0x70]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.00430930
add esp, 0xc
xor edi, edi
nop word [eax + eax]
cmp byte [esp + edi + 0x868], 0x90
jne 0x40c148
cmp byte [esp + edi + 0x869], 0x90
jne 0x40c148
cmp byte [esp + edi + 0x86a], 0x90
jne 0x40c148
cmp byte [esp + edi + 0x86b], 0x90
je 0x40c153
inc edi
cmp edi, 0x800
jle 0x40c120
xor edi, edi
push 0x40
push 0x1000
push 0x800
push 0
push dword [0x636714]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 1
push dword [esp + 0x14]
mov esi, eax
lea eax, [esp + 0x70]
push 0x800
mov ecx, esi
sub ecx, dword [esp + 0x34]
push 0x5c
sub ecx, 5
push 0x75
push eax
mov dword [esp + 0x79], ecx
call fcn.00408240
push 1
push 0
push 0x800
push 0x60
lea eax, [esp + 0x90]
push 0x76
push eax
call fcn.00408240
add esp, 0x30
lea eax, [esp + 0x68]
push 0
push edi
push eax
push esi
push dword [0x636714]
call ebx
push 0
push 6
lea eax, [esp + 0x68]
push eax
push dword [esp + 0x34]
push dword [0x636714]
call ebx
push 0x800
lea eax, [esp + 0x6c]
mov esi, 0x408ca0
push eax
lea eax, [esp + 0x870]
add esi, 3
mov ecx, 0x200
lea edi, [esp + 0x70]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.00430930
add esp, 0xc
xor edi, edi
nop word [eax + eax]
cmp byte [esp + edi + 0x868], 0x90
jne 0x40c238
cmp byte [esp + edi + 0x869], 0x90
jne 0x40c238
cmp byte [esp + edi + 0x86a], 0x90
jne 0x40c238
cmp byte [esp + edi + 0x86b], 0x90
je 0x40c243
inc edi
cmp edi, 0x800
jle 0x40c210
xor edi, edi
push 0x40
push 0x1000
push 0x800
push 0
push dword [0x636714]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 1
push dword [esp + 0x14]
mov esi, eax
lea eax, [esp + 0x70]
push 0x800
mov ecx, esi
sub ecx, dword [esp + 0x38]
push 0x5c
sub ecx, 5
push 0x75
push eax
mov dword [esp + 0x79], ecx
call fcn.00408240
push 1
push 0
push 0x800
push 0x60
lea eax, [esp + 0x90]
push 0x76
push eax
call fcn.00408240
add esp, 0x30
lea eax, [esp + 0x68]
push 0
push edi
push eax
push esi
push dword [0x636714]
call ebx
push 0
push 6
lea eax, [esp + 0x68]
push eax
push dword [esp + 0x38]
push dword [0x636714]
call ebx
push 0x800
lea eax, [esp + 0x6c]
mov esi, 0x408d60
push eax
lea eax, [esp + 0x870]
add esi, 3
mov ecx, 0x200
lea edi, [esp + 0x70]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.00430930
add esp, 0xc
xor edi, edi
nop word [eax + eax]
cmp byte [esp + edi + 0x868], 0x90
jne 0x40c328
cmp byte [esp + edi + 0x869], 0x90
jne 0x40c328
cmp byte [esp + edi + 0x86a], 0x90
jne 0x40c328
cmp byte [esp + edi + 0x86b], 0x90
je 0x40c333
inc edi
cmp edi, 0x800
jle 0x40c300
xor edi, edi
push 0x40
push 0x1000
push 0x800
push 0
push dword [0x636714]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 1
push dword [esp + 0x14]
mov esi, eax
lea eax, [esp + 0x70]
push 0x800
mov ecx, esi
sub ecx, dword [esp + 0x3c]
push 0x5c
sub ecx, 5
push 0x75
push eax
mov dword [esp + 0x79], ecx
call fcn.00408240
push 1
push 0
push 0x800
push 0x60
lea eax, [esp + 0x90]
push 0x76
push eax
call fcn.00408240
add esp, 0x30
lea eax, [esp + 0x68]
push 0
push edi
push eax
push esi
push dword [0x636714]
call ebx
push 0
push 6
lea eax, [esp + 0x68]
push eax
push dword [esp + 0x3c]
push dword [0x636714]
call ebx
push 0x800
lea eax, [esp + 0x6c]
mov esi, 0x408e30
push eax
lea eax, [esp + 0x870]
add esi, 3
mov ecx, 0x200
lea edi, [esp + 0x70]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.00430930
add esp, 0xc
xor edi, edi
nop word [eax + eax]
cmp byte [esp + edi + 0x868], 0x90
jne 0x40c418
cmp byte [esp + edi + 0x869], 0x90
jne 0x40c418
cmp byte [esp + edi + 0x86a], 0x90
jne 0x40c418
cmp byte [esp + edi + 0x86b], 0x90
je 0x40c423
inc edi
cmp edi, 0x800
jle 0x40c3f0
xor edi, edi
push 0x40
push 0x1000
push 0x800
push 0
push dword [0x636714]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 1
push dword [esp + 0x14]
mov esi, eax
lea eax, [esp + 0x70]
push 0x800
mov ecx, esi
sub ecx, dword [esp + 0x40]
push 0x5c
sub ecx, 5
push 0x75
push eax
mov dword [esp + 0x79], ecx
call fcn.00408240
push 1
push 0
push 0x800
push 0x60
lea eax, [esp + 0x90]
push 0x76
push eax
call fcn.00408240
add esp, 0x30
lea eax, [esp + 0x68]
push 0
push edi
push eax
push esi
push dword [0x636714]
call ebx
push 0
push 6
lea eax, [esp + 0x68]
push eax
push dword [esp + 0x40]
push dword [0x636714]
call ebx
push 0x800
lea eax, [esp + 0x6c]
mov esi, 0x408f00
push eax
lea eax, [esp + 0x870]
add esi, 3
mov ecx, 0x200
lea edi, [esp + 0x70]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.00430930
add esp, 0xc
xor edi, edi
nop word [eax + eax]
cmp byte [esp + edi + 0x868], 0x90
jne 0x40c508
cmp byte [esp + edi + 0x869], 0x90
jne 0x40c508
cmp byte [esp + edi + 0x86a], 0x90
jne 0x40c508
cmp byte [esp + edi + 0x86b], 0x90
je 0x40c513
inc edi
cmp edi, 0x800
jle 0x40c4e0
xor edi, edi
push 0x40
push 0x1000
push 0x800
push 0
push dword [0x636714]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 1
push dword [esp + 0x14]
mov esi, eax
lea eax, [esp + 0x70]
push 0x800
mov ecx, esi
sub ecx, dword [esp + 0x44]
push 0x5c
sub ecx, 5
push 0x75
push eax
mov dword [esp + 0x79], ecx
call fcn.00408240
push 1
push 0
push 0x800
push 0x60
lea eax, [esp + 0x90]
push 0x76
push eax
call fcn.00408240
add esp, 0x30
lea eax, [esp + 0x68]
push 0
push edi
push eax
push esi
push dword [0x636714]
call ebx
push 0
push 6
lea eax, [esp + 0x68]
push eax
push dword [esp + 0x44]
push dword [0x636714]
call ebx
push 0x800
lea eax, [esp + 0x6c]
mov esi, 0x408fd0
push eax
lea eax, [esp + 0x870]
add esi, 3
mov ecx, 0x200
lea edi, [esp + 0x70]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.00430930
add esp, 0xc
xor edi, edi
nop word [eax + eax]
cmp byte [esp + edi + 0x868], 0x90
jne 0x40c5f8
cmp byte [esp + edi + 0x869], 0x90
jne 0x40c5f8
cmp byte [esp + edi + 0x86a], 0x90
jne 0x40c5f8
cmp byte [esp + edi + 0x86b], 0x90
je 0x40c603
inc edi
cmp edi, 0x800
jle 0x40c5d0
xor edi, edi
push 0x40
push 0x1000
push 0x800
push 0
push dword [0x636714]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 1
push dword [esp + 0x14]
mov esi, eax
lea eax, [esp + 0x70]
push 0x800
mov ecx, esi
sub ecx, dword [esp + 0x48]
push 0x5c
sub ecx, 5
push 0x75
push eax
mov dword [esp + 0x79], ecx
call fcn.00408240
push 1
push 0
push 0x800
push 0x60
lea eax, [esp + 0x90]
push 0x76
push eax
call fcn.00408240
add esp, 0x30
lea eax, [esp + 0x68]
push 0
push edi
push eax
push esi
push dword [0x636714]
call ebx
push 0
push 6
lea eax, [esp + 0x68]
push eax
push dword [esp + 0x48]
push dword [0x636714]
call ebx
mov ecx, dword [esp + 0x106c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042eb7c
mov esp, ebp
pop ebp
ret