Function at 0x10001610
Capabilities:
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f0
mov eax, dword [0x1009e040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push str.VirtualAllocEx
mov dword [ebp - 0x2f0], eax
mov esi, edx
mov eax, dword [ebp + 0x14]
push str.Kernel32.dll
mov dword [ebp - 0x2d4], ecx
mov dword [ebp - 0x2e0], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
cmp dword [ebp - 0x2d4], 0
mov dword [ebp - 0x2d8], eax
mov dword [ebp - 0x2dc], 0xffffffff
jne 0x10001689
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006d63
mov esp, ebp
pop ebp
ret
push str.VirtualProtectEx
push 0x10024fec
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call edi
mov ecx, dword [ebp - 0x2d4]
lea edx, [ebp - 0x2d0]
mov dword [ebp - 0x2e4], eax
lea eax, [ebp - 0x2ec]
push eax
lea eax, [ebp - 0x2e8]
push eax
push dword [ebp - 0x2e0]
lea eax, [ebp - 0x2e0]
push eax
lea eax, [ebp - 0x2dc]
push eax
call fcn.10001510
mov edi, dword [ebp - 0x2dc]
add esp, 0x14
test eax, eax
je 0x10001889
mov edx, dword [ebp - 0x2e8]
mov dword [ebp - 0x2d4], 0
cmp dword [esi + 0x34], edx
jne 0x1000171f
mov eax, dword [ebp - 0x2ec]
cmp eax, ebx
jb 0x1000171f
lea ecx, [ebp - 0x2dc]
mov dword [ebp - 0x2d4], edx
push ecx
push 0x40
push eax
push edx
push edi
call dword [ebp - 0x2e4]
jmp 0x10001786
cmp dword [ebp - 0x2d8], 0
je 0x10001786
mov ecx, edi
call fcn.100014c0
test eax, eax
je 0x1000174d
push 0x40
push 0x3000
push ebx
push dword [esi + 0x34]
push edi
call dword [ebp - 0x2d8]
mov dword [ebp - 0x2d4], eax
jmp 0x10001753
mov eax, dword [ebp - 0x2d4]
test eax, eax
jne 0x10001786
mov ecx, esi
call fcn.10001490
test eax, eax
je 0x10001786
push 0x40
push 0x3000
push ebx
push 0
push edi
call dword [ebp - 0x2d8]
mov dword [ebp - 0x2d4], eax
test eax, eax
je 0x10001786
push ecx
call fcn.100014b0
add esp, 4
push str.WriteProcessMemory
push 0x10024fec
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetThreadContext
push 0x10024fec
mov dword [ebp - 0x2d8], 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 0x1000186c
mov ecx, dword [ebp - 0x22c]
lea eax, [ebp - 0x2dc]
push eax
push 4
lea eax, [ebp - 0x2d4]
add ecx, 8
push eax
push ecx
push edi
call dword [ebp - 0x2d8]
mov eax, dword [ebp - 0x2d4]
lea ecx, [ebp - 0x2dc]
push ecx
push ebx
push dword [ebp - 0x2f0]
mov dword [esi + 0x34], eax
push eax
push edi
call dword [ebp - 0x2d8]
test eax, eax
je 0x1000186c
mov eax, dword [ebp - 0x2d4]
mov ecx, dword [esi + 0x28]
mov dword [ebp - 0x2d0], 0x10007
cmp eax, dword [ebp - 0x2e8]
jne 0x1000182f
mov eax, dword [esi + 0x34]
mov esi, dword [ebp - 0x2e0]
add eax, ecx
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x2d0]
push eax
push esi
call dword [ebp - 0x2e4]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006d63
mov esp, ebp
pop ebp
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x2e0]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
or edi, 0xffffffff
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10006d63
mov esp, ebp
pop ebp
ret