Function at 0x404452
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [0x4080c4], 0
push ebx
push esi
jne 0x404797
push 0x40
push 0x3000
push 0x20
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x4080c4], eax
test eax, eax
je 0x404797
lea edx, [ebp - 0x14]
mov dword [ebp - 0xc], 0x6c64746e
lea ecx, [ebp - 0xc]
mov word [ebp - 8], 0x6c
mov dword [ebp - 0x14], 0xd09c750
mov dword [ebp - 0x10], ebx
call main
cmp al, 1
jne 0x404793
mov esi, dword [0x4080c4]
mov ecx, esi
mov edx, dword [ebp - 0x14]
push 0x1e
call fcn.00403472
add esp, 4
mov cl, bl
movzx eax, cl
cmp byte [eax + esi], 0xc2
je 0x4044d9
inc cl
cmp cl, 0x20
jb 0x4044c7
jmp 0x4044e0
movzx eax, cl
mov byte [eax + esi], 0xc3
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
xor esi, esi
lea ecx, [ebp - 4]
inc esi
mov edx, esi
call fcn.00404e63
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 4], esi
jne 0x404597
push 5
pop ecx
cmp eax, ecx
jne 0x404533
push 0x52
pop eax
push 3
pop ecx
push 0xc
mov word [0x4084d2], cx
pop ecx
push 0xe
mov word [0x4084d4], cx
pop ecx
jmp 0x404639
push 6
pop edx
cmp eax, edx
jne 0x404578
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x404514
cmp eax, esi
je 0x404514
cmp eax, 2
jne 0x40455e
push 0x53
pop eax
push 4
pop ecx
push 0xd
mov word [0x4084d2], cx
pop ecx
push 0xf
jmp 0x404526
cmp eax, 3
jne 0x404797
push 0x54
pop eax
push 0xe
mov word [0x4084d2], cx
pop ecx
push 0x10
jmp 0x404526
cmp eax, 0xa
je 0x404586
cmp eax, 0xb
jne 0x404797
push 0x55
pop eax
push 0xf
pop ecx
mov word [0x4084d2], dx
push 0x11
jmp 0x404526
cmp eax, 5
jne 0x4045e7
cmp dword [ebp + 0x10], esi
jne 0x4045bf
push 0x25
pop eax
mov ecx, 0xb7
mov word [0x4084d2], cx
push 0x19
pop ecx
mov word [0x4084d4], cx
add ecx, 0x7e
jmp 0x404639
cmp dword [ebp + 0x10], 2
jne 0x404797
push 0x27
pop eax
mov ecx, 0xbf
mov word [0x4084d2], cx
push 0x1b
pop ecx
mov word [0x4084d4], cx
lea ecx, [eax + 0x77]
jmp 0x404639
cmp eax, 6
jne 0x404695
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x404617
push 0x3c
pop eax
mov ecx, 0x102
mov word [0x4084d2], cx
push 0x30
pop ecx
mov word [0x4084d4], cx
mov ecx, 0xe1
jmp 0x404639
cmp eax, esi
jne 0x40464b
push 0x42
pop eax
mov ecx, 0x111
mov word [0x4084d2], cx
push 0x32
pop ecx
mov word [0x4084d4], cx
mov ecx, 0xe7
mov word [0x4084d0], ax
mov word [0x4084d6], cx
jmp 0x40479d
cmp eax, 2
jne 0x40466e
mov eax, 0x163
mov dword [0x4084d0], 0x870163
mov dword [0x4084d4], 0xb30174
jmp 0x40479d
cmp eax, 3
jne 0x404797
mov eax, 0x168
mov dword [0x4084d0], 0x8a0168
mov dword [0x4084d4], 0xb60179
jmp 0x40479d
mov ecx, dword [ebp + 0x14]
cmp eax, 0xa
jne 0x404736
cmp ecx, 0x2800
jne 0x4046c7
mov eax, 0x16e
mov dword [0x4084d0], 0x8c016e
mov dword [0x4084d4], 0xb80180
jmp 0x40479d
cmp ecx, 0x295a
jne 0x4046ed
mov eax, 0x170
mov dword [0x4084d0], 0x8c0170
mov dword [0x4084d4], 0xb80183
jmp 0x40479d
cmp ecx, 0x3839
jne 0x404713
mov eax, 0x172
mov dword [0x4084d0], 0x8d0172
mov dword [0x4084d4], 0xba0185
jmp 0x40479d
cmp ecx, 0x3ad7
jne 0x40473b
mov eax, 0x175
mov dword [0x4084d0], 0x8d0175
mov dword [0x4084d4], 0xbb018a
jmp 0x40479d
cmp eax, 0xb
jne 0x404797
mov dword [0x4084d0], 0x8e0178
mov edx, 0xbc
mov word [0x4084d6], dx
mov eax, 0x178
cmp ecx, 0x3fab
je 0x40477e
cmp ecx, 0x42ee
je 0x40477e
cmp ecx, 0x4563
je 0x40477e
cmp ecx, 0x47ba
je 0x40477e
cmp ecx, 0x47bb
jne 0x40478c
mov ecx, 0x18d
mov word [0x4084d4], cx
jmp 0x40479d
mov ecx, 0x18e
jmp 0x404783
xor al, al
jmp 0x4047a3
mov ax, word [0x4084d0]
test ax, ax
setne al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret