Function at 0x1009ee33
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Resolve function by parsing pe exports
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x534
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 0x38]
push edi
xor eax, eax
cmp esi, ebx
mov ecx, 0x132
lea edi, [esp + 0x78]
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
rep stosd dword es:[edi], eax
mov dword [esp + 0x60], ebx
lea edi, [esp + 0x64]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
stosd dword es:[edi], eax
jne 0x1009ee77
lea esi, [esp + 0x60]
mov dl, byte [0x100e1845]
cmp dl, 4
jne 0x1009ee94
mov eax, dword [ebp + 0xc]
add eax, 0x34
mov dword [esp + 0x34], eax
mov eax, dword [eax]
mov dword [esp + 0x3c], ebx
jmp 0x1009eea7
mov ecx, dword [ebp + 0xc]
add ecx, 0x30
mov eax, dword [ecx]
mov dword [esp + 0x34], ecx
mov ecx, dword [ecx + 4]
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebp + 0xc]
mov edi, dword [ecx + 0x28]
mov dword [esp + 0x28], eax
movzx eax, byte [0x100e184e]
lea eax, [esp + eax + 0x70]
mov dword [esp + 0x2c], ebx
movzx ebx, byte [0x100e184f]
mov dword [esp + 0x58], eax
xor ecx, ecx
mov eax, edi
add eax, dword [esp + 0x28]
lea ebx, [esp + ebx + 0x70]
adc ecx, dword [esp + 0x2c]
cmp dl, 4
mov dword [esp + 0x54], ebx
mov dword [ebx], eax
je 0x1009eee9
mov dword [ebx + 4], ecx
mov ebx, dword [ebp + 0x3c]
mov ax, word [ebx]
cmp ax, 0x3e
jne 0x1009eef7
inc ebx
inc ebx
cmp byte [0x100e1845], 8
jne 0x1009ef31
cmp ax, 0x3e
jne 0x1009ef31
cmp word [ebx], 0
je 0x1009ef31
push 0x14000
lea ecx, [esp + 0x28]
call fcn.10046141
push dword [esp + 0x24]
push edi
push ebx
call fcn.1009ec22
add esp, 0xc
lea ecx, [esp + 0x24]
call fcn.1003f96c
push ebx
push esi
push dword [ebp + 0x34]
lea eax, [esp + 0x54]
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x98]
push eax
push dword [ebp + 8]
call fcn.1009ed43
add esp, 0x30
cmp byte [0x100e1845], 4
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x34]
jne 0x1009ef80
mov eax, dword [eax]
and dword [esp + 0x3c], 0
mov dword [esp + 0x38], eax
jmp 0x1009ef8d
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 0x28]
xor eax, eax
cmp dword [esi], 0xffffffff
mov dword [esp + 0x24], ebx
jne 0x1009efa0
mov dword [esi], eax
cmp dword [esi + 4], 0xffffffff
jne 0x1009efa9
mov dword [esi + 4], eax
cmp dword [esp + 0x44], eax
jle 0x1009f25f
mov dl, byte [0x100e1845]
cmp dl, 4
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x5c], eax
jne 0x1009f013
cmp dword [esp + 0x38], ecx
jne 0x1009f013
mov edi, dword [esp + 0x3c]
cmp edi, dword [esp + 0x2c]
jne 0x1009f013
mov edi, dword [esp + 0x4c]
cmp edi, eax
jb 0x1009f013
mov eax, dword [esp + 0x48]
ja 0x1009eff1
cmp eax, dword [ebp + 0x1c]
jb 0x1009f013
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x5c]
push edx
push 0x40
push eax
push ecx
push dword [esi]
mov dword [esp + 0x2c], ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
jmp 0x1009f12b
cmp dword [0x100e3de4], 0
je 0x1009f237
cmp dl, 4
mov edi, 0x3000
jne 0x1009f06a
push dword [esp + 0x2c]
push ecx
push dword [esi]
call fcn.1009ebe0
add esp, 0xc
test eax, eax
je 0x1009f058
push 0x40
push edi
push dword [ebp + 0x1c]
push dword [esp + 0x44]
push dword [esi]
call dword [0x100e3de4]
cdq
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x18]
or eax, dword [esp + 0x1c]
jne 0x1009f139
mov ecx, dword [esp + 0x28]
push dword [ebp + 0xc]
call fcn.1009eaef
add esp, 4
test eax, eax
je 0x1009f237
cmp byte [0x100e1845], 4
jne 0x1009f099
push 0x40
push edi
push dword [ebp + 0x1c]
push 0
push dword [esi]
call dword [0x100e3de4]
cdq
jmp 0x1009f106
push dword [esp + 0x2c]
push ecx
push dword [esi]
call fcn.1009ebe0
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
sub eax, ecx
add eax, dword [esp + 0xfc]
add esp, 0xc
add eax, 0xfffff
xor ebx, ebx
and dword [esp + 0x4c], ebx
and eax, 0xfff00000
sub ecx, eax
sbb edx, dword [esp + 0x4c]
push 0x40
mov dword [esp + 0x20], edx
mov edx, dword [ebp + 0x1c]
push edi
lea eax, [edx + eax*2]
push eax
push ecx
push dword [esi]
mov dword [esp + 0x2c], ecx
call dword [0x100e3de4]
mov eax, dword [esp + 0xf0]
sub eax, dword [esp + 0x24]
mov edx, dword [esp + 0xf4]
sbb edx, ebx
mov ebx, dword [esp + 0x24]
mov ecx, eax
or ecx, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
je 0x1009f237
push edx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call fcn.1009eb27
add esp, 0x14
mov eax, dword [esp + 0x18]
or eax, dword [esp + 0x1c]
je 0x1009f237
and dword [esp + 0x24], 0
cmp byte [0x100e1845], 4
mov edi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
jne 0x1009f17b
mov eax, dword [esp + 0x58]
mov eax, dword [eax]
and dword [esp + 0x4c], 0
lea ecx, [esp + 0x24]
push ecx
push 4
lea ecx, [esp + 0x20]
push ecx
add eax, 8
push eax
push dword [esi]
call edi
cmp byte [0x100e1845], 4
jne 0x1009f17b
mov eax, dword [esp + 0x34]
jmp 0x1009f186
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
lea eax, [esp + 0x24]
push eax
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push ecx
push dword [esi]
call edi
test eax, eax
je 0x1009f230
mov cl, byte [0x100e1845]
cmp cl, 4
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
jne 0x1009f1d5
cmp edi, dword [esp + 0x28]
jne 0x1009f1d5
cmp edx, dword [esp + 0x2c]
jne 0x1009f1d5
xor eax, eax
add ebx, dword [esp + 0x38]
adc eax, dword [esp + 0x3c]
mov edx, ebx
mov dword [esp + 0x4c], eax
jmp 0x1009f1e2
xor eax, eax
add ebx, edi
adc eax, edx
cmp cl, 4
mov edx, ebx
jne 0x1009f1ea
mov eax, dword [esp + 0x54]
mov dword [eax], edx
jmp 0x1009f1f3
mov ecx, dword [esp + 0x54]
mov dword [ecx], edx
mov dword [ecx + 4], eax
cmp byte [0x100e1845], 4
jne 0x1009f20a
lea eax, [esp + 0x70]
push eax
push dword [esi + 4]
call dword [0x100e3de0]
test byte [ebp + 0x24], 4
jne 0x1009f219
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp dword [ebp + 0x38], 0
jne 0x1009f25f
push dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esi]
call edi
jmp 0x1009f25f
or dword [esp + 0x44], 0xffffffff
jmp 0x1009f23f
mov dword [esp + 0x44], 0xfffffffe
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
and dword [esi + 4], 0
push dword [esi]
call edi
and dword [esi], 0
mov eax, dword [esp + 0x44]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret