Function at 0x40107f
Capabilities:
Allocate or change rwx memory
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
lea eax, [ebp - 8]
push eax
push 4
pop edi
push edi
lea eax, [ebp - 0x58]
push eax
add esi, 0x4e
push esi
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp dword [ebp - 8], edi
jne 0x401345
push str.This
lea eax, [ebp - 0x58]
push eax
mov byte [ebp - 0x54], bl
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x401345
lea eax, [ebp - 0x68]
push eax
push edi
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x401345
lea eax, [ebp - 8]
push eax
push edi
push str.That
push esi
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp dword [ebp - 8], edi
jne 0x401345
mov esi, dword [ebp + 0x10]
cmp esi, 0xffffffff
je 0x401345
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push eax
lea eax, [ebp - 0xa8]
push str._d___x_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
imul esi, esi, 0x48
lea eax, [esi + 0x403030]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x64], esi
mov dword [ebp - 0xc], eax
jmp 0x401159
mov esi, dword [ebp - 0x64]
push 0x40
push 0x1000
push 0x40
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov edi, eax
cmp edx, ebx
je 0x4011b3
cmp edx, 2
je 0x4011b3
mov eax, dword [esi + 0x40304c]
mov byte [ebp - 1], bl
add eax, dword [ebp + 0xc]
mov ecx, dword [ecx - 0x18]
mov esi, dword [ebp + 0xc]
sub eax, edi
sub eax, 5
lea ecx, [ecx + esi + 5]
mov byte [ebp - 0x50], 0xe8
mov dword [ebp - 0x4f], eax
cmp edx, ebx
je 0x4011bf
cmp edx, 1
je 0x4011bf
mov byte [ebp - 0x4a], 0x4e
mov byte [ebp - 0x49], 0x20
push 8
jmp 0x4011d5
mov eax, dword [esi + 0x403048]
mov byte [ebp - 1], 1
jmp 0x401185
mov byte [ebp - 0x4a], 0x8e
mov byte [ebp - 0x49], 0xc0
mov byte [ebp - 0x48], 0xfe
mov byte [ebp - 0x47], 0xff
mov byte [ebp - 0x46], 0xff
push 0xb
mov byte [ebp - 0x4b], 0x8b
pop eax
mov byte [ebp + eax - 0x50], 0x8b
mov byte [ebp + eax - 0x4f], 0x89
inc eax
mov byte [ebp + eax - 0x4f], pe_nt_image_headers32
inc eax
mov byte [ebp + eax - 0x4f], bl
inc eax
inc eax
mov byte [ebp + eax - 0x50], bl
inc eax
mov byte [ebp + eax - 0x50], bl
inc eax
mov byte [ebp + eax - 0x50], 0x83
inc eax
mov byte [ebp + eax - 0x50], 0x41
inc eax
mov byte [ebp + eax - 0x50], 0x18
inc eax
cmp byte [ebp - 1], bl
je 0x40121c
mov byte [ebp + eax - 0x50], 1
jmp 0x4012bf
mov byte [ebp + eax - 0x50], 0xff
mov byte [ebp + eax - 0x4f], 0x75
inc eax
mov byte [ebp + eax - 0x4f], 0x19
inc eax
mov byte [ebp + eax - 0x4f], 0x83
inc eax
mov byte [ebp + eax - 0x4f], 0x79
inc eax
mov byte [ebp + eax - 0x4f], 8
inc eax
mov byte [ebp + eax - 0x4f], bl
inc eax
mov byte [ebp + eax - 0x4f], 0x75
inc eax
mov byte [ebp + eax - 0x4f], 0x13
inc eax
mov byte [ebp + eax - 0x4f], 0x8b
inc eax
mov byte [ebp + eax - 0x4f], 1
inc eax
mov byte [ebp + eax - 0x4f], 0xdd
inc eax
mov byte [ebp + eax - 0x4f], 0x41
inc eax
mov byte [ebp + eax - 0x4f], 0x10
inc eax
mov byte [ebp + eax - 0x4f], 0x8b
inc eax
mov byte [ebp + eax - 0x4f], 0x90
inc eax
mov byte [ebp + eax - 0x4f], 0xc0
inc eax
mov byte [ebp + eax - 0x4f], bl
inc eax
mov byte [ebp + eax - 0x4f], bl
inc eax
mov byte [ebp + eax - 0x4f], bl
inc eax
mov byte [ebp + eax - 0x4f], 0x83
inc eax
mov byte [ebp + eax - 0x4f], 0xec
inc eax
mov byte [ebp + eax - 0x4f], 8
inc eax
mov byte [ebp + eax - 0x4f], 0xdd
inc eax
inc eax
mov byte [ebp + eax - 0x50], 0x1c
inc eax
mov byte [ebp + eax - 0x50], 0x24
inc eax
mov byte [ebp + eax - 0x50], 0xff
inc eax
mov byte [ebp + eax - 0x50], 0xd2
inc eax
mov byte [ebp + eax - 0x50], 0xe9
inc eax
sub ecx, eax
sub ecx, edi
sub ecx, 4
mov dword [ebp + eax - 0x50], ecx
lea eax, [ebp - 8]
push eax
push 0x40
lea eax, [ebp - 0x50]
push eax
push edi
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp dword [ebp - 8], 0x40
jne 0x401345
mov eax, dword [ebp - 0xc]
mov esi, dword [eax - 0x18]
add esi, dword [ebp + 0xc]
lea eax, [ebp - 0x68]
push eax
push 0x40
push 5
push esi
push dword [ebp + 8]
sub edi, esi
sub edi, 5
mov byte [ebp - 0x60], 0xe9
mov dword [ebp - 0x5f], edi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x401345
lea eax, [ebp - 8]
push eax
push 5
lea eax, [ebp - 0x60]
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x401345
inc dword [ebp - 0x10]
add dword [ebp - 0xc], 4
cmp dword [ebp - 0x10], 6
jb 0x401156
pop edi
pop esi
pop ebx
leave
ret