Function at 0x10001410
Capabilities:
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f4
mov eax, dword [0x10086030]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x18]
push str.VirtualAllocEx
push str.Kernel32.dll
mov dword [ebp - 0x2e8], eax
mov dword [ebp - 0x2f0], edi
mov dword [ebp - 0x2dc], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x2e0], eax
or eax, 0xffffffff
mov dword [ebp - 0x2d8], eax
test esi, esi
je 0x1000169c
push str.VirtualProtectEx
push 0x1000c210
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x2dc]
mov dword [ebp - 0x2e4], eax
lea edx, [ebp - 0x2f4]
push edx
lea eax, [ebp - 0x2ec]
push eax
push ecx
lea edx, [ebp - 0x2dc]
push edx
lea eax, [ebp - 0x2d8]
push eax
lea ecx, [ebp - 0x2d0]
push ecx
push esi
call fcn.10001320
mov esi, dword [ebp - 0x2d8]
add esp, 0x1c
test eax, eax
je 0x1000169a
mov eax, dword [ebp - 0x2ec]
mov dword [ebp - 0x2d4], 0
cmp dword [ebx + 0x34], eax
jne 0x1000150c
mov ecx, dword [ebp - 0x2f4]
cmp ecx, edi
jb 0x1000150c
lea edx, [ebp - 0x2d8]
push edx
push 0x40
push ecx
push eax
push esi
mov dword [ebp - 0x2d4], eax
call dword [ebp - 0x2e4]
jmp 0x1000157e
cmp dword [ebp - 0x2e0], 0
je 0x1000157e
push eax
push esi
call fcn.100012d0
add esp, 8
test eax, eax
je 0x1000153c
mov eax, dword [ebx + 0x34]
push 0x40
push 0x3000
push edi
push eax
push esi
call dword [ebp - 0x2e0]
mov dword [ebp - 0x2d4], eax
cmp dword [ebp - 0x2d4], 0
jne 0x1000157e
push ebx
call fcn.10001260
add esp, 4
test eax, eax
je 0x1000157e
push 0x40
push 0x3000
push edi
push 0
push esi
call dword [ebp - 0x2e0]
mov dword [ebp - 0x2d4], eax
test eax, eax
je 0x1000157e
mov ecx, dword [ebp - 0x2e8]
push eax
push ecx
push ebx
call fcn.10001290
add esp, 0xc
push str.WriteProcessMemory
push 0x1000c210
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetThreadContext
push 0x1000c210
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [ebp - 0x2d4], 0
mov dword [ebp - 0x2e4], eax
je 0x1000167c
mov ecx, dword [ebp - 0x22c]
lea edx, [ebp - 0x2d8]
push edx
push 4
lea eax, [ebp - 0x2d4]
push eax
add ecx, 8
push ecx
push esi
call edi
mov ecx, dword [ebp - 0x2f0]
mov eax, dword [ebp - 0x2d4]
lea edx, [ebp - 0x2d8]
push edx
mov edx, dword [ebp - 0x2e8]
push ecx
push edx
push eax
push esi
mov dword [ebx + 0x34], eax
call edi
test eax, eax
je 0x1000166a
mov eax, dword [ebp - 0x2d4]
mov dword [ebp - 0x2d0], 0x10007
cmp eax, dword [ebp - 0x2ec]
jne 0x1000162a
mov eax, dword [ebx + 0x28]
add eax, dword [ebx + 0x34]
mov dword [ebp - 0x220], eax
jmp 0x10001635
mov ecx, dword [ebx + 0x28]
add ecx, eax
mov dword [ebp - 0x220], ecx
mov edi, dword [ebp - 0x2dc]
lea edx, [ebp - 0x2d0]
push edx
push edi
call dword [ebp - 0x2e4]
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000287a
mov esp, ebp
pop ebp
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 0x2dc]
push eax
jmp 0x1000168c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 0x2dc]
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 [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000287a
mov esp, ebp
pop ebp
ret