Function at 0x404236
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 4], 0
push 0xc
call fcn.00407dc3
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
add ebx, 8
push ebx
push 0xc
call fcn.00407dc3
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x2fc8a5a
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
push ebx
mov ebx, edi
mov ecx, 1
push ecx
push ebx
push 0xc
call fcn.00407dc3
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
push ebx
push 8
call fcn.00407dc3
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
pop ebx
pop ebx
pop ecx
add ebx, 4
dec ecx
jne 0x404293
pop ebx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
push 0x34
call fcn.00407dc3
add esp, 4
mov dword [ebp - 0x24], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 0xd
rep stosd dword es:[edi], eax
mov dword [ebp - 0x28], esp
xor eax, eax
call dword [0x2fcb0c5]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x404357
push 0x40
push 0x4010f51
push 6
call fcn.00407ddb
add esp, 0xc
mov dword [ebp - 0x2c], eax
push 0x80000301
push 0
push 8
push 0x80000301
push 0
push 0x20
push 2
mov ebx, 0xc8
call fcn.00408980
add esp, 0x1c
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esp
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
nop
nop
cmp dword [ebp - 0x34], esp
je 0x4043ba
push 0x53
push 0x4010f51
push 6
call fcn.00407ddb
add esp, 0xc
test eax, eax
je 0x404607
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x28]
mov dword [ebx], 1
mov dword [ebx + 4], 0
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx + 8]
call fcn.00404216
mov eax, 0
cmp eax, ecx
jl 0x404403
push 0xad
push 0x4010f51
push 1
call fcn.00407ddb
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x28]
mov dword [ebx], 2
mov dword [ebx + 4], 0
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx + 8]
call fcn.00404216
mov eax, 0
cmp eax, ecx
jl 0x40444b
push 0xfa
push 0x4010f51
push 1
call fcn.00407ddb
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], esp
mov ebx, dword [ebp - 0x28]
push dword [ebx]
push 0x2fc7398
push 0
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x40448d
push 0xfa
push 0x4010f51
push 6
call fcn.00407ddb
add esp, 0xc
test eax, eax
je 0x4045db
mov dword [ebp - 0x28], esp
push 0
push 0
push 0
mov eax, dword [ebp - 8]
push eax
push 0x18
call fcn.00407dc3
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
mov ecx, 1
mov ebx, dword [ebx]
add ebx, 8
push ebx
push ecx
mov ebx, dword [ebx]
push ebx
mov ebx, dword [ebx]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
pop ebx
add ebx, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
pop ecx
pop ebx
add ebx, 4
dec ecx
jne 0x4044e4
pop ebx
add ebx, 4
push 0
push dword [ebp - 4]
xor eax, eax
call dword [0x2fcb0c9]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x404555
push 0x13b
push 0x4010f51
push 6
call fcn.00407ddb
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x2c]
push ebx
mov edi, dword [ebp - 0x30]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push edi
mov edi, dword [edi]
mov ecx, 1
add edi, 8
push ebx
push edi
push ecx
mov edi, dword [edi]
push edi
mov edi, dword [edi]
push ebx
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
pop ebx
add ebx, 8
pop edi
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
pop ecx
pop edi
pop ebx
add edi, 4
add ebx, 0x10
dec ecx
jne 0x40457f
pop edi
add edi, 4
call fcn.00407dc9
add esp, 4
pop eax
mov dword [ebp - 0x28], esp
push dword [ebp - 4]
xor eax, eax
call dword [0x2fcb0cd]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x404607
push 0x17c
push 0x4010f51
push 6
call fcn.00407ddb
add esp, 0xc
mov dword [ebp - 0x28], esp
push dword [ebp + 8]
push 0
push 0x1f0fff
xor eax, eax
call dword [0x2fcb0d1]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x40463d
push 0x1c4
push 0x4010f51
push 6
call fcn.00407ddb
add esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 1
mov eax, 0x2fc73a9
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
call fcn.00404c6d
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40466b
push ebx
call fcn.00407dc9
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40467f
push ebx
call fcn.00407dc9
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push 0x80000005
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x404696
mov eax, 0x21c8438
push eax
push 1
mov ebx, 0x194
call fcn.00408920
add esp, 0x10
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esp
push 0x40
push 0x1000
push dword [ebp - 0x28]
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x4046e7
push 0x298
push 0x4010f51
push 6
call fcn.00407ddb
add esp, 0xc
cdq
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
lea eax, [ebp - 0x14]
push eax
call fcn.00404de7
mov dword [ebp - 0x28], eax
push 0x80000005
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x40470d
mov eax, 0x21c8438
push eax
push 1
mov ebx, 0x194
call fcn.00408920
add esp, 0x10
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x1c]
call fcn.00404e06
mov eax, 0x2fc898d
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
call fcn.00404e2f
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x404750
push ebx
call fcn.00407dc9
add esp, 4
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x24]
add ebx, 0x30
mov dword [ebp - 0x28], ebx
mov eax, 0x2fc899a
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x20]
call fcn.00404ed0
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x404786
push ebx
call fcn.00407dc9
add esp, 4
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x28]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x24]
add ebx, 0xc
mov dword [ebp - 0x28], ebx
mov eax, 0x2fc89a0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x20]
call fcn.00404ed0
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4047be
push ebx
call fcn.00407dc9
add esp, 4
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x28]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x24]
add ebx, 0x28
mov dword [ebp - 0x28], ebx
mov eax, 0x2fc89ac
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x20]
call fcn.00404ed0
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4047f6
push ebx
call fcn.00407dc9
add esp, 4
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x28]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x28], ebx
mov eax, 0x2fc89b8
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x20]
call fcn.00404ed0
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40482b
push ebx
call fcn.00407dc9
add esp, 4
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x28]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x24]
add ebx, 8
mov dword [ebp - 0x28], ebx
mov eax, 0x2fc89c5
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x20]
call fcn.00404ed0
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x404863
push ebx
call fcn.00407dc9
add esp, 4
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x28]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x24]
add ebx, 0x20
mov dword [ebp - 0x28], ebx
mov eax, 0x2fc89d2
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x20]
call fcn.00404ed0
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40489b
push ebx
call fcn.00407dc9
add esp, 4
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x28]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x24]
add ebx, 4
mov dword [ebp - 0x28], ebx
mov eax, 0x2fc89e0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x20]
call fcn.00404ed0
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4048d3
push ebx
call fcn.00407dc9
add esp, 4
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x28]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x24]
add ebx, 0x10
mov dword [ebp - 0x28], ebx
mov eax, 0x2fc89ef
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x20]
call fcn.00404ed0
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40490b
push ebx
call fcn.00407dc9
add esp, 4
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x28]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x24]
add ebx, 0x14
mov dword [ebp - 0x28], ebx
mov eax, 0x2fc89fe
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x20]
call fcn.00404ed0
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x404943
push ebx
call fcn.00407dc9
add esp, 4
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x28]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x24]
add ebx, 0x1c
mov dword [ebp - 0x28], ebx
mov eax, 0x2fc8a0f
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x20]
call fcn.00404ed0
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40497b
push ebx
call fcn.00407dc9
add esp, 4
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x28]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x24]
add ebx, 0x18
mov dword [ebp - 0x28], ebx
mov eax, 0x2fc8a21
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x20]
call fcn.00404ed0
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4049b3
push ebx
call fcn.00407dc9
add esp, 4
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x28]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x24]
add ebx, 0x24
mov dword [ebp - 0x28], ebx
mov eax, 0x2fc8a34
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x20]
call fcn.00404ed0
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4049eb
push ebx
call fcn.00407dc9
add esp, 4
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x28]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x24]
add ebx, 0x2c
mov dword [ebp - 0x28], ebx
mov eax, 0x2fc8a47
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x20]
call fcn.00404ed0
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x404a23
push ebx
call fcn.00407dc9
add esp, 4
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x28]
mov dword [ebx], eax
push dword [ebp + 0xc]
call fcn.00404de7
mov dword [ebp - 0x28], eax
push 0x80000005
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x404a4b
mov eax, 0x21c8438
push eax
push 1
mov ebx, 0x194
call fcn.00408920
add esp, 0x10
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x24]
push eax
call fcn.00404f5a
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 0
push 0
push dword [ebp - 0x3c]
mov dword [ebp - 0x40], 0
push 0
push dword [ebp - 0x40]
mov dword [ebp - 0x44], 0
push 0
push dword [ebp - 0x44]
mov dword [ebp - 0x48], 0
push 0
push dword [ebp - 0x48]
mov dword [ebp - 0x4c], 0
push 0
push dword [ebp - 0x4c]
mov dword [ebp - 0x50], 0
push 0
push dword [ebp - 0x50]
mov dword [ebp - 0x54], 0
push 0
push dword [ebp - 0x54]
mov dword [ebp - 0x58], 0
push 0
push dword [ebp - 0x58]
push 1
push dword [ebp - 0x30]
push 1
push dword [ebp - 0x1c]
push 1
push dword [ebp - 0x2c]
push 1
push dword [ebp - 0x28]
push 1
push dword [ebp - 0xc]
push dword [ebp - 0x1c]
call fcn.00404f76
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x404b7f
mov dword [ebp - 0x28], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [0x2fcb0cd]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x404b3f
push 0x833
push 0x4010f51
push 6
call fcn.00407ddb
add esp, 0xc
mov dword [ebp - 0x28], esp
push 0x8000
push 0
push dword [ebp - 0x1c]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x404b75
push 0x84d
push 0x4010f51
push 6
call fcn.00407ddb
add esp, 0xc
mov eax, 0
jmp 0x404beb
mov dword [ebp - 0x28], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [0x2fcb0cd]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x404bab
push 0x891
push 0x4010f51
push 6
call fcn.00407ddb
add esp, 0xc
mov dword [ebp - 0x28], esp
push 0x8000
push 0
push dword [ebp - 0x1c]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x404be1
push 0x8ab
push 0x4010f51
push 6
call fcn.00407ddb
add esp, 0xc
mov eax, 1
jmp 0x404beb
push eax
mov ebx, dword [ebp - 8]
push ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x404c11
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x404c0d
imul eax, dword [ebx]
jmp 0x404c02
mov ecx, eax
test ecx, ecx
je 0x404c39
push ecx
push ebx
mov ebx, dword [ebx]
push ebx
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.00407dc9
add esp, 4
pop ebx
call fcn.00407dc9
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x404c17
call fcn.00407dc9
add esp, 4
pop ebx
call fcn.00407dc9
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x404c5a
push ebx
call fcn.00407dc9
add esp, 4
mov ebx, dword [ebp - 0x24]
push ebx
call fcn.00407dc9
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8