Function at 0x100012c0
Capabilities:
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f0
mov eax, dword [0x10125040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x2d4], eax
mov eax, dword [ebp + 0x14]
push str.VirtualAllocEx
mov dword [ebp - 0x2e8], eax
mov eax, dword [ebp + 0x1c]
push str.Kernel32.dll
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 0x1000133d
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100133e0
mov esp, ebp
pop ebp
ret
push str.VirtualProtectEx
push 0x1005d1f8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call edi
mov dword [ebp - 0x2e4], eax
lea eax, [ebp - 0x2f0]
push eax
lea eax, [ebp - 0x2ec]
push eax
push dword [ebp - 0x2e0]
lea eax, [ebp - 0x2e0]
push eax
lea eax, [ebp - 0x2dc]
push eax
lea eax, [ebp - 0x2d0]
push eax
push dword [ebp - 0x2d4]
call fcn.100015f0
mov edi, dword [ebp - 0x2dc]
add esp, 0x1c
test eax, eax
je 0x1000154a
mov eax, dword [ebp - 0x2ec]
mov dword [ebp - 0x2d4], 0
cmp dword [esi + 0x34], eax
jne 0x100013d4
mov ecx, dword [ebp - 0x2f0]
cmp ecx, ebx
jb 0x100013d4
lea edx, [ebp - 0x2dc]
mov dword [ebp - 0x2d4], eax
push edx
push 0x40
push ecx
push eax
push edi
call dword [ebp - 0x2e4]
jmp 0x10001447
cmp dword [ebp - 0x2d8], 0
je 0x10001447
push eax
push edi
call fcn.10001900
add esp, 8
test eax, eax
je 0x10001405
push 0x40
push 0x3000
push ebx
push dword [esi + 0x34]
push edi
call dword [ebp - 0x2d8]
mov dword [ebp - 0x2d4], eax
jmp 0x1000140b
mov eax, dword [ebp - 0x2d4]
test eax, eax
jne 0x10001447
push esi
call fcn.100017a0
add esp, 4
test eax, eax
je 0x10001447
push 0x40
push 0x3000
push ebx
push 0
push edi
call dword [ebp - 0x2d8]
mov dword [ebp - 0x2d4], eax
test eax, eax
je 0x10001447
push eax
push dword [ebp - 0x2e8]
push esi
call fcn.100016f0
add esp, 0xc
push str.WriteProcessMemory
push 0x1005d1f8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetThreadContext
push 0x1005d1f8
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 0x1000152d
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 - 0x2e8]
mov dword [esi + 0x34], eax
push eax
push edi
call dword [ebp - 0x2d8]
test eax, eax
je 0x1000152d
mov eax, dword [ebp - 0x2d4]
mov ecx, dword [esi + 0x28]
mov dword [ebp - 0x2d0], 0x10007
cmp eax, dword [ebp - 0x2ec]
jne 0x100014f0
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.100133e0
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.100133e0
mov esp, ebp
pop ebp
ret