Function at 0x4014c0
Capabilities:
Allocate or change rwx memory
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40464e
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x407040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp + 0xc]
xor ecx, ecx
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x44], ebx
lea eax, [edx + 2]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x38], ecx
cmp byte [eax - 2], 0x90
jne 0x401523
cmp byte [eax - 1], 0x90
jne 0x401523
cmp byte [eax], 0x90
je 0x401535
inc ecx
inc eax
mov dword [ebp - 0x38], ecx
cmp ecx, 0x3e8
jl 0x401512
xor ecx, ecx
mov dword [ebp - 0x38], ecx
xorps xmm0, xmm0
movq qword [ebx], xmm0
mov dword [ebx + 8], 0
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
xor edi, edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x34], edi
test ecx, ecx
jle 0x4019d5
cmp byte [edx + edi], 0xcd
jne 0x401754
cmp byte [edx + edi + 1], 0xcc
jne 0x401754
cmp byte [edx + edi + 2], 0xcc
jne 0x401754
cmp byte [edx + edi + 3], 0xcc
jne 0x401754
xor esi, esi
nop
mov cl, byte [ebp + esi + 0x18]
mov eax, dword [ebx + 4]
mov byte [ebp - 0x14], cl
cmp eax, dword [ebx + 8]
je 0x4015b6
mov byte [eax], cl
inc dword [ebx + 4]
jmp 0x4015c2
lea ecx, [ebp - 0x14]
push ecx
push eax
mov ecx, ebx
call fcn.00401ec0
inc esi
cmp esi, 4
jl 0x4015a0
mov eax, dword [ebx + 4]
mov byte [ebp - 0x14], 0xff
cmp eax, dword [ebx + 8]
je 0x4015dc
mov byte [eax], 0xff
inc dword [ebx + 4]
jmp 0x4015e8
lea ecx, [ebp - 0x14]
push ecx
push eax
mov ecx, ebx
call fcn.00401ec0
mov eax, dword [ebx + 4]
mov byte [ebp - 0x14], 0xd2
cmp eax, dword [ebx + 8]
je 0x4015fc
mov byte [eax], 0xd2
inc dword [ebx + 4]
jmp 0x401608
lea ecx, [ebp - 0x14]
push ecx
push eax
mov ecx, ebx
call fcn.00401ec0
mov eax, dword [ebx + 4]
mov byte [ebp - 0x14], 0x83
cmp eax, dword [ebx + 8]
je 0x40161c
mov byte [eax], 0x83
inc dword [ebx + 4]
jmp 0x401628
lea ecx, [ebp - 0x14]
push ecx
push eax
mov ecx, ebx
call fcn.00401ec0
mov eax, dword [ebx + 4]
mov byte [ebp - 0x14], 0xc4
cmp eax, dword [ebx + 8]
je 0x40163c
mov byte [eax], 0xc4
inc dword [ebx + 4]
jmp 0x401648
lea ecx, [ebp - 0x14]
push ecx
push eax
mov ecx, ebx
call fcn.00401ec0
mov eax, dword [ebx + 4]
mov byte [ebp - 0x14], 4
cmp eax, dword [ebx + 8]
je 0x40165c
mov byte [eax], 4
inc dword [ebx + 4]
jmp 0x401668
lea ecx, [ebp - 0x14]
push ecx
push eax
mov ecx, ebx
call fcn.00401ec0
mov eax, dword [ebx + 4]
mov byte [ebp - 0x14], 0x89
cmp eax, dword [ebx + 8]
je 0x40167c
mov byte [eax], 0x89
inc dword [ebx + 4]
jmp 0x401688
lea ecx, [ebp - 0x14]
push ecx
push eax
mov ecx, ebx
call fcn.00401ec0
mov eax, dword [ebx + 4]
mov byte [ebp - 0x14], 0xc2
cmp eax, dword [ebx + 8]
je 0x40169c
mov byte [eax], 0xc2
inc dword [ebx + 4]
jmp 0x4016a8
lea ecx, [ebp - 0x14]
push ecx
push eax
mov ecx, ebx
call fcn.00401ec0
mov eax, dword [ebx + 4]
mov byte [ebp - 0x14], 0xb8
cmp eax, dword [ebx + 8]
je 0x4016bc
mov byte [eax], 0xb8
inc dword [ebx + 4]
jmp 0x4016c8
lea ecx, [ebp - 0x14]
push ecx
push eax
mov ecx, ebx
call fcn.00401ec0
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x28]
call fcn.00401490
mov dword [ebp - 0x18], eax
xor esi, esi
nop dword [eax + eax]
mov cl, byte [ebp + esi - 0x18]
mov eax, dword [ebx + 4]
mov byte [ebp - 0x14], cl
cmp eax, dword [ebx + 8]
je 0x4016f6
mov byte [eax], cl
inc dword [ebx + 4]
jmp 0x401702
lea ecx, [ebp - 0x14]
push ecx
push eax
mov ecx, ebx
call fcn.00401ec0
inc esi
cmp esi, 4
jl 0x4016e0
mov eax, dword [ebx + 4]
mov byte [ebp - 0x14], 0x89
cmp eax, dword [ebx + 8]
je 0x40171c
mov byte [eax], 0x89
inc dword [ebx + 4]
jmp 0x401728
lea ecx, [ebp - 0x14]
push ecx
push eax
mov ecx, ebx
call fcn.00401ec0
mov eax, dword [ebx + 4]
mov byte [ebp - 0x14], 0x10
cmp eax, dword [ebx + 8]
je 0x40173c
mov byte [eax], 0x10
inc dword [ebx + 4]
jmp 0x401748
lea ecx, [ebp - 0x14]
push ecx
push eax
mov ecx, ebx
call fcn.00401ec0
mov edx, dword [ebp - 0x28]
add edi, 4
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x34], edi
cmp byte [edx + edi], 0xce
jne 0x4019a6
cmp byte [edx + edi + 1], 0xcc
jne 0x4019a6
cmp byte [edx + edi + 2], 0xcc
jne 0x4019a6
cmp byte [edx + edi + 3], 0xcc
jne 0x4019a6
dec dword [ebx + 4]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x48], ecx
cmp eax, ecx
je 0x4019a3
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
cmp al, 1
jne 0x4017fd
mov eax, dword [ebx + 4]
mov byte [ebp - 0x14], 0x68
cmp eax, dword [ebx + 8]
je 0x4017be
mov byte [eax], 0x68
inc dword [ebx + 4]
jmp 0x4017ca
lea ecx, [ebp - 0x14]
push ecx
push eax
mov ecx, ebx
call fcn.00401ec0
xor esi, esi
nop dword [eax]
mov cl, byte [ebp + esi - 0x20]
mov eax, dword [ebx + 4]
mov byte [ebp - 0x14], cl
cmp eax, dword [ebx + 8]
je 0x4017e6
mov byte [eax], cl
inc dword [ebx + 4]
jmp 0x4017f2
lea ecx, [ebp - 0x14]
push ecx
push eax
mov ecx, ebx
call fcn.00401ec0
inc esi
cmp esi, 4
jl 0x4017d0
jmp 0x401988
cmp al, 3
jne 0x401850
mov eax, dword [ebx + 4]
mov byte [ebp - 0x14], 0x68
cmp eax, dword [ebx + 8]
je 0x401815
mov byte [eax], 0x68
inc dword [ebx + 4]
jmp 0x401821
lea ecx, [ebp - 0x14]
push ecx
push eax
mov ecx, ebx
call fcn.00401ec0
xor esi, esi
mov cl, byte [ebp + esi - 0x20]
mov eax, dword [ebx + 4]
mov byte [ebp - 0x14], cl
cmp eax, dword [ebx + 8]
je 0x401839
mov byte [eax], cl
inc dword [ebx + 4]
jmp 0x401845
lea ecx, [ebp - 0x14]
push ecx
push eax
mov ecx, ebx
call fcn.00401ec0
inc esi
cmp esi, 4
jl 0x401823
jmp 0x401988
test al, al
jne 0x40189d
mov eax, dword [ebx + 4]
mov byte [ebp - 0x14], 0x6a
cmp eax, dword [ebx + 8]
je 0x401868
mov byte [eax], 0x6a
inc dword [ebx + 4]
jmp 0x401877
lea ecx, [ebp - 0x14]
push ecx
push eax
mov ecx, ebx
call fcn.00401ec0
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebx + 4]
mov byte [ebp - 0x14], cl
cmp eax, dword [ebx + 8]
je 0x40188c
mov byte [eax], cl
inc dword [ebx + 4]
jmp 0x401988
lea ecx, [ebp - 0x14]
push ecx
push eax
mov ecx, ebx
call fcn.00401ec0
jmp 0x401988
cmp al, 2
jne 0x401988
mov edx, dword [ebx + 4]
mov byte [ebp - 0x14], 0x68
cmp edx, dword [ebx + 8]
je 0x4018b9
mov byte [edx], 0x68
inc dword [ebx + 4]
jmp 0x4018cb
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
push edx
call fcn.00401ec0
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
cmp al, 2
jne 0x4019f5
mov esi, ecx
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4018d8
mov edi, ecx
sub esi, edx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4018e6
mov eax, dword [ebp - 0x30]
sub edi, ecx
push 0x40
push 0x2000
inc edi
push edi
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov eax, dword [ebp - 0x30]
push 0x40
push 0x1000
push edi
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x24], eax
test esi, esi
je 0x401957
mov ebx, dword [ebp - 0x2c]
mov edi, eax
sub ebx, eax
nop word [eax + eax]
mov al, byte [ebx + edi]
push 0
mov byte [ebp - 0x14], al
lea eax, [ebp - 0x14]
push 1
push eax
mov eax, dword [ebp - 0x30]
push edi
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
inc edi
sub esi, 1
jne 0x401930
mov ebx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x24], eax
xor esi, esi
nop dword [eax]
mov cl, byte [ebp + esi - 0x24]
mov eax, dword [ebx + 4]
mov byte [ebp - 0x14], cl
cmp eax, dword [ebx + 8]
je 0x401976
mov byte [eax], cl
inc dword [ebx + 4]
jmp 0x401982
lea ecx, [ebp - 0x14]
push ecx
push eax
mov ecx, ebx
call fcn.00401ec0
inc esi
cmp esi, 4
jl 0x401960
mov eax, dword [ebp - 0x18]
add eax, 8
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x48]
jne 0x401795
mov edi, dword [ebp - 0x34]
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x3c]
add edi, 4
mov eax, dword [ebx + 4]
add edx, edi
cmp eax, dword [ebx + 8]
je 0x4019bb
mov ecx, eax
mov al, byte [edx]
mov byte [ecx], al
inc dword [ebx + 4]
jmp 0x4019c4
push edx
push eax
mov ecx, ebx
call fcn.00401ec0
inc edi
mov dword [ebp - 0x34], edi
cmp edi, dword [ebp - 0x38]
jge 0x4019d5
mov edx, dword [ebp - 0x28]
jmp 0x401572
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004036ce
mov esp, ebp
pop ebp
ret 0x14
call fcn.00401220
int3