Function at 0x404831
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [0x4080b4], 0
push ebx
push esi
jne 0x404b76
push 0x40
push 0x3000
push 0x20
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x4080b4], eax
test eax, eax
je 0x404b76
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 fcn.004046ba
cmp al, 1
jne 0x404b72
mov esi, dword [0x4080b4]
mov ecx, esi
mov edx, dword [ebp - 0x14]
push 0x1e
call fcn.00403533
add esp, 4
mov cl, bl
movzx eax, cl
cmp byte [eax + esi], 0xc2
je 0x4048b8
inc cl
cmp cl, 0x20
jb 0x4048a6
jmp 0x4048bf
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.004051ee
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 4], esi
jne 0x404976
push 5
pop ecx
cmp eax, ecx
jne 0x404912
push 0x52
pop eax
push 3
pop ecx
push 0xc
mov word [0x4084c2], cx
pop ecx
push 0xe
mov word [0x4084c4], cx
pop ecx
jmp 0x404a18
push 6
pop edx
cmp eax, edx
jne 0x404957
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4048f3
cmp eax, esi
je 0x4048f3
cmp eax, 2
jne 0x40493d
push 0x53
pop eax
push 4
pop ecx
push 0xd
mov word [0x4084c2], cx
pop ecx
push 0xf
jmp 0x404905
cmp eax, 3
jne 0x404b76
push 0x54
pop eax
push 0xe
mov word [0x4084c2], cx
pop ecx
push 0x10
jmp 0x404905
cmp eax, 0xa
je 0x404965
cmp eax, 0xb
jne 0x404b76
push 0x55
pop eax
push 0xf
pop ecx
mov word [0x4084c2], dx
push 0x11
jmp 0x404905
cmp eax, 5
jne 0x4049c6
cmp dword [ebp + 0x10], esi
jne 0x40499e
push 0x25
pop eax
mov ecx, 0xb7
mov word [0x4084c2], cx
push 0x19
pop ecx
mov word [0x4084c4], cx
add ecx, 0x7e
jmp 0x404a18
cmp dword [ebp + 0x10], 2
jne 0x404b76
push 0x27
pop eax
mov ecx, 0xbf
mov word [0x4084c2], cx
push 0x1b
pop ecx
mov word [0x4084c4], cx
lea ecx, [eax + 0x77]
jmp 0x404a18
cmp eax, 6
jne 0x404a74
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4049f6
push 0x3c
pop eax
mov ecx, 0x102
mov word [0x4084c2], cx
push 0x30
pop ecx
mov word [0x4084c4], cx
mov ecx, 0xe1
jmp 0x404a18
cmp eax, esi
jne 0x404a2a
push 0x42
pop eax
mov ecx, 0x111
mov word [0x4084c2], cx
push 0x32
pop ecx
mov word [0x4084c4], cx
mov ecx, 0xe7
mov word [0x4084c0], ax
mov word [0x4084c6], cx
jmp 0x404b7c
cmp eax, 2
jne 0x404a4d
mov eax, 0x163
mov dword [0x4084c0], 0x870163
mov dword [0x4084c4], 0xb30174
jmp 0x404b7c
cmp eax, 3
jne 0x404b76
mov eax, 0x168
mov dword [0x4084c0], 0x8a0168
mov dword [0x4084c4], 0xb60179
jmp 0x404b7c
mov ecx, dword [ebp + 0x14]
cmp eax, 0xa
jne 0x404b15
cmp ecx, 0x2800
jne 0x404aa6
mov eax, 0x16e
mov dword [0x4084c0], 0x8c016e
mov dword [0x4084c4], 0xb80180
jmp 0x404b7c
cmp ecx, 0x295a
jne 0x404acc
mov eax, 0x170
mov dword [0x4084c0], 0x8c0170
mov dword [0x4084c4], 0xb80183
jmp 0x404b7c
cmp ecx, 0x3839
jne 0x404af2
mov eax, 0x172
mov dword [0x4084c0], 0x8d0172
mov dword [0x4084c4], 0xba0185
jmp 0x404b7c
cmp ecx, 0x3ad7
jne 0x404b1a
mov eax, 0x175
mov dword [0x4084c0], 0x8d0175
mov dword [0x4084c4], 0xbb018a
jmp 0x404b7c
cmp eax, 0xb
jne 0x404b76
mov dword [0x4084c0], 0x8e0178
mov edx, 0xbc
mov word [0x4084c6], dx
mov eax, 0x178
cmp ecx, 0x3fab
je 0x404b5d
cmp ecx, 0x42ee
je 0x404b5d
cmp ecx, 0x4563
je 0x404b5d
cmp ecx, 0x47ba
je 0x404b5d
cmp ecx, 0x47bb
jne 0x404b6b
mov ecx, 0x18d
mov word [0x4084c4], cx
jmp 0x404b7c
mov ecx, 0x18e
jmp 0x404b62
xor al, al
jmp 0x404b82
mov ax, word [0x4084c0]
test ax, ax
setne al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret