Function at 0x41a9d8
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x24
push 0
push 0
dec ecx
jne 0x41a238
push ecx
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov ebx, 0x42b52c
xor eax, eax
push ebp
push 0x41ad22
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, 0x41ad40
call fcn.00404650
push 0x41ad4c
push dword [ebx]
push 0x41ad58
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404980
mov eax, dword [ebp - 0xc]
call fcn.00404ac0
mov edx, eax
lea eax, [ebp - 8]
call fcn.004047f4
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x14]
mov ecx, dword [ebx]
mov edx, 0x41ad4c
call fcn.0040490c
mov eax, dword [ebp - 0x14]
call fcn.00404ac0
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.004047f4
mov eax, dword [ebp - 0x10]
pop edx
call fcn.00417c3c
mov byte [ebp - 1], 0
push 0x41ad4c
push dword [ebx]
push 0x41ad6c
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404980
mov eax, dword [ebp - 0x1c]
call fcn.00404ac0
mov edx, eax
lea eax, [ebp - 0x18]
call fcn.004047f4
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
mov ecx, dword [ebx]
mov edx, 0x41ad4c
call fcn.0040490c
mov eax, dword [ebp - 0x24]
call fcn.00404ac0
mov edx, eax
lea eax, [ebp - 0x20]
call fcn.004047f4
mov eax, dword [ebp - 0x20]
pop edx
call fcn.00417c3c
push 0x41ad4c
push dword [ebx]
push 0x41ad80
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00404980
mov eax, dword [ebp - 0x2c]
call fcn.00404ac0
mov edx, eax
lea eax, [ebp - 0x28]
call fcn.004047f4
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x34]
mov ecx, dword [ebx]
mov edx, 0x41ad4c
call fcn.0040490c
mov eax, dword [ebp - 0x34]
call fcn.00404ac0
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.004047f4
mov eax, dword [ebp - 0x30]
pop edx
call fcn.00417c3c
push 0
push 0
mov eax, dword [0x427d64]
xor ecx, ecx
xor edx, edx
call fcn.00417c0c
mov eax, dword [0x427f30]
mov edx, dword [ebp + 0xc]
mov dword [eax], edx
mov eax, dword [0x427f30]
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [0x427f30]
push eax
mov eax, dword [0x427d64]
push eax
push 0x1f0fff
push 0x42b524
call sub.ntdll.dll_NtOpenProcess
push 0x41ad4c
push dword [ebx]
push 0x41ad6c
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.00404980
mov eax, dword [ebp - 0x3c]
call fcn.00404ac0
mov edx, eax
lea eax, [ebp - 0x38]
call fcn.004047f4
mov eax, dword [ebp - 0x38]
push eax
lea eax, [ebp - 0x44]
mov ecx, dword [ebx]
mov edx, 0x41ad4c
call fcn.0040490c
mov eax, dword [ebp - 0x44]
call fcn.00404ac0
mov edx, eax
lea eax, [ebp - 0x40]
call fcn.004047f4
mov eax, dword [ebp - 0x40]
pop edx
call fcn.00417c3c
push 0x41ad4c
push dword [ebx]
push 0x41ad94
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.00404980
mov eax, dword [ebp - 0x4c]
call fcn.00404ac0
mov edx, eax
lea eax, [ebp - 0x48]
call fcn.004047f4
mov eax, dword [ebp - 0x48]
push eax
lea eax, [ebp - 0x54]
mov ecx, dword [ebx]
mov edx, 0x41ad4c
call fcn.0040490c
mov eax, dword [ebp - 0x54]
call fcn.00404ac0
mov edx, eax
lea eax, [ebp - 0x50]
call fcn.004047f4
mov eax, dword [ebp - 0x50]
pop edx
call fcn.00417c3c
cmp dword [0x42b524], 0
je 0x41acf9
push 0x40
push 0x3000
mov eax, esi
mov edx, dword [eax]
call dword [edx]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [0x42b518], eax
cmp dword [0x42b518], 0
je 0x41acf9
push 0
push 0
mov eax, esi
call fcn.00415b4c
mov eax, esi
mov edx, dword [eax]
call dword [edx]
mov ecx, eax
mov edx, dword [0x42b518]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [0x42b518]
mov dword [0x42b500], eax
push 0x40
mov eax, dword [0x42b500]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x41ace0
mov eax, dword [0x42b500]
cmp word [eax], 0x5a4d
jne 0x41ace0
mov eax, dword [0x42b500]
mov eax, dword [eax + 0x3c]
add eax, dword [0x42b518]
mov dword [0x42b504], eax
push 0xf8
mov eax, dword [0x42b504]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x41ace0
mov eax, dword [0x42b504]
cmp dword [eax], 0x4550
jne 0x41ace0
mov eax, dword [0x42b504]
add eax, 0xf8
mov dword [0x42b508], eax
mov eax, dword [0x42b504]
mov eax, dword [eax + 0x50]
mov dword [0x42b510], eax
cmp dword [0x42b510], 0
je 0x41acc8
push 0x40
push 0x3000
mov eax, dword [0x42b510]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [0x42b51c], eax
cmp dword [0x42b51c], 0
je 0x41acc8
push 0x40
push 0x3000
mov eax, dword [0x42b510]
push eax
push 0
mov eax, dword [0x42b524]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov dword [0x42b520], eax
cmp dword [0x42b520], 0
je 0x41acac
mov eax, dword [0x42b504]
movzx eax, word [eax + 6]
mov dword [0x42b50c], eax
mov eax, dword [0x42b508]
sub eax, dword [0x42b500]
mov edx, dword [0x42b50c]
add edx, edx
add edx, edx
add edx, edx
lea edx, [edx + edx*4]
add eax, edx
push eax
mov eax, dword [0x42b500]
push eax
mov eax, dword [0x42b51c]
push eax
call sub.ntdll_RtlMoveMemory
mov edi, dword [0x42b50c]
dec edi
test edi, edi
jl 0x41a635
inc edi
mov dword [0x42b514], 0
mov eax, dword [0x42b508]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [0x42b508]
mov eax, dword [eax + 0x14]
add eax, dword [0x42b518]
push eax
mov eax, dword [0x42b508]
mov eax, dword [eax + 0xc]
add eax, dword [0x42b51c]
push eax
call sub.ntdll_RtlMoveMemory
mov eax, dword [0x42b508]
add eax, 0x28
mov dword [0x42b508], eax
inc dword [0x42b514]
dec edi
jne 0x41a5f3
mov eax, dword [0x42b504]
mov eax, dword [eax + 0xa0]
test eax, eax
je 0x41a673
mov edx, dword [0x42b504]
mov edx, dword [edx + 0xa4]
push edx
mov edx, dword [0x42b520]
push edx
add eax, dword [0x42b51c]
push eax
mov eax, dword [0x42b51c]
push eax
mov eax, dword [0x42b504]
mov eax, dword [eax + 0x34]
push eax
call fcn.0041a08c
push 0x41ad4c
push dword [ebx]
push 0x41ad80
lea eax, [ebp - 0x5c]
mov edx, 3
call fcn.00404980
mov eax, dword [ebp - 0x5c]
call fcn.00404ac0
mov edx, eax
lea eax, [ebp - 0x58]
call fcn.004047f4
mov eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x64]
mov ecx, dword [ebx]
mov edx, 0x41ad4c
call fcn.0040490c
mov eax, dword [ebp - 0x64]
call fcn.00404ac0
mov edx, eax
lea eax, [ebp - 0x60]
call fcn.004047f4
mov eax, dword [ebp - 0x60]
pop edx
call fcn.00417c3c
push 0x41ad4c
push dword [ebx]
push 0x41ad6c
lea eax, [ebp - 0x6c]
mov edx, 3
call fcn.00404980
mov eax, dword [ebp - 0x6c]
call fcn.00404ac0
mov edx, eax
lea eax, [ebp - 0x68]
call fcn.004047f4
mov eax, dword [ebp - 0x68]
push eax
lea eax, [ebp - 0x74]
mov ecx, dword [ebx]
mov edx, 0x41ad4c
call fcn.0040490c
mov eax, dword [ebp - 0x74]
call fcn.00404ac0
mov edx, eax
lea eax, [ebp - 0x70]
call fcn.004047f4
mov eax, dword [ebp - 0x70]
pop edx
call fcn.00417c3c
mov eax, dword [0x42b504]
mov eax, dword [eax + 0x80]
add eax, dword [0x42b51c]
push eax
mov eax, dword [0x42b51c]
push eax
call fcn.0041a13c
push 0x41ad4c
push dword [ebx]
push 0x41ad94
lea eax, [ebp - 0x7c]
mov edx, 3
call fcn.00404980
mov eax, dword [ebp - 0x7c]
call fcn.00404ac0
mov edx, eax
lea eax, [ebp - 0x78]
call fcn.004047f4
mov eax, dword [ebp - 0x78]
push eax
lea eax, [ebp - 0x84]
mov ecx, dword [ebx]
mov edx, 0x41ad4c
call fcn.0040490c
mov eax, dword [ebp - 0x84]
call fcn.00404ac0
mov edx, eax
lea eax, [ebp - 0x80]
call fcn.004047f4
mov eax, dword [ebp - 0x80]
pop edx
call fcn.00417c3c
push 0x41ad4c
push dword [ebx]
push 0x41ad58
lea eax, [ebp - 0x8c]
mov edx, 3
call fcn.00404980
mov eax, dword [ebp - 0x8c]
call fcn.00404ac0
mov edx, eax
lea eax, [ebp - 0x88]
call fcn.004047f4
mov eax, dword [ebp - 0x88]
push eax
lea eax, [ebp - 0x94]
mov ecx, dword [ebx]
mov edx, 0x41ad4c
call fcn.0040490c
mov eax, dword [ebp - 0x94]
call fcn.00404ac0
mov edx, eax
lea eax, [ebp - 0x90]
call fcn.004047f4
mov eax, dword [ebp - 0x90]
pop edx
call fcn.00417c3c
mov eax, dword [0x42b504]
mov eax, dword [eax + 0x28]
add eax, dword [0x42b520]
mov dword [0x42b4fc], eax
push 0x41ad4c
push dword [ebx]
push 0x41ada8
lea eax, [ebp - 0x9c]
mov edx, 3
call fcn.00404980
mov eax, dword [ebp - 0x9c]
call fcn.00404ac0
mov edx, eax
lea eax, [ebp - 0x98]
call fcn.004047f4
mov eax, dword [ebp - 0x98]
push eax
lea eax, [ebp - 0xa4]
mov ecx, dword [ebx]
mov edx, 0x41ad4c
call fcn.0040490c
mov eax, dword [ebp - 0xa4]
call fcn.00404ac0
mov edx, eax
lea eax, [ebp - 0xa0]
call fcn.004047f4
mov eax, dword [ebp - 0xa0]
pop edx
call fcn.00417c3c
push 0x41ad4c
push dword [ebx]
push 0x41adc0
lea eax, [ebp - 0xac]
mov edx, 3
call fcn.00404980
mov eax, dword [ebp - 0xac]
call fcn.00404ac0
mov edx, eax
lea eax, [ebp - 0xa8]
call fcn.004047f4
mov eax, dword [ebp - 0xa8]
push eax
lea eax, [ebp - 0xb4]
mov ecx, dword [ebx]
mov edx, 0x41ad4c
call fcn.0040490c
mov eax, dword [ebp - 0xb4]
call fcn.00404ac0
mov edx, eax
lea eax, [ebp - 0xb0]
call fcn.004047f4
mov eax, dword [ebp - 0xb0]
pop edx
call fcn.00417c3c
push 0x41ad4c
push dword [ebx]
push 0x41ad94
lea eax, [ebp - 0xbc]
mov edx, 3
call fcn.00404980
mov eax, dword [ebp - 0xbc]
call fcn.00404ac0
mov edx, eax
lea eax, [ebp - 0xb8]
call fcn.004047f4
mov eax, dword [ebp - 0xb8]
push eax
lea eax, [ebp - 0xc4]
mov ecx, dword [ebx]
mov edx, 0x41ad4c
call fcn.0040490c
mov eax, dword [ebp - 0xc4]
call fcn.00404ac0
mov edx, eax
lea eax, [ebp - 0xc0]
call fcn.004047f4
mov eax, dword [ebp - 0xc0]
pop edx
call fcn.00417c3c
push 0x42b528
mov eax, dword [0x42b510]
push eax
mov eax, dword [0x42b51c]
push eax
mov eax, dword [0x42b520]
push eax
mov eax, dword [0x42b524]
push eax
call sub.ntdll_ZwWriteVirtualMemory
push 0x41ad4c
push dword [ebx]
push 0x41ad58
lea eax, [ebp - 0xcc]
mov edx, 3
call fcn.00404980
mov eax, dword [ebp - 0xcc]
call fcn.00404ac0
mov edx, eax
lea eax, [ebp - 0xc8]
call fcn.004047f4
mov eax, dword [ebp - 0xc8]
push eax
lea eax, [ebp - 0xd4]
mov ecx, dword [ebx]
mov edx, 0x41ad4c
call fcn.0040490c
mov eax, dword [ebp - 0xd4]
call fcn.00404ac0
mov edx, eax
lea eax, [ebp - 0xd0]
call fcn.004047f4
mov eax, dword [ebp - 0xd0]
pop edx
call fcn.00417c3c
push 0x41ad4c
push dword [ebx]
push 0x41ad80
lea eax, [ebp - 0xdc]
mov edx, 3
call fcn.00404980
mov eax, dword [ebp - 0xdc]
call fcn.00404ac0
mov edx, eax
lea eax, [ebp - 0xd8]
call fcn.004047f4
mov eax, dword [ebp - 0xd8]
push eax
lea eax, [ebp - 0xe4]
mov ecx, dword [ebx]
mov edx, 0x41ad4c
call fcn.0040490c
mov eax, dword [ebp - 0xe4]
call fcn.00404ac0
mov edx, eax
lea eax, [ebp - 0xe0]
call fcn.004047f4
mov eax, dword [ebp - 0xe0]
pop edx
call fcn.00417c3c
push 0x41adc8
push 0x41addc
call sub.kernel32.dll_GetModuleHandleW
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x42b4f8], eax
xor eax, eax
mov dword [0x42b4f0], eax
xor eax, eax
mov dword [0x42b4f4], eax
push 0x41ad4c
push dword [ebx]
push 0x41ad58
lea eax, [ebp - 0xec]
mov edx, 3
call fcn.00404980
mov eax, dword [ebp - 0xec]
call fcn.00404ac0
mov edx, eax
lea eax, [ebp - 0xe8]
call fcn.004047f4
mov eax, dword [ebp - 0xe8]
push eax
lea eax, [ebp - 0xf4]
mov ecx, dword [ebx]
mov edx, 0x41ad4c
call fcn.0040490c
mov eax, dword [ebp - 0xf4]
call fcn.00404ac0
mov edx, eax
lea eax, [ebp - 0xf0]
call fcn.004047f4
mov eax, dword [ebp - 0xf0]
pop edx
call fcn.00417c3c
push 0x41ad4c
push dword [ebx]
push 0x41ad80
lea eax, [ebp - 0xfc]
mov edx, 3
call fcn.00404980
mov eax, dword [ebp - 0xfc]
call fcn.00404ac0
mov edx, eax
lea eax, [ebp - 0xf8]
call fcn.004047f4
mov eax, dword [ebp - 0xf8]
push eax
lea eax, [ebp - 0x104]
mov ecx, dword [ebx]
mov edx, 0x41ad4c
call fcn.0040490c
mov eax, dword [ebp - 0x104]
call fcn.00404ac0
mov edx, eax
lea eax, [ebp - 0x100]
call fcn.004047f4
mov eax, dword [ebp - 0x100]
pop edx
call fcn.00417c3c
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x42b4fc]
push eax
mov eax, dword [0x42b524]
push eax
push 0
push 0x2000000
push 0x42b4f0
call dword [0x42b4f8]
push 0x41ad4c
push dword [ebx]
push 0x41ad58
lea eax, [ebp - 0x10c]
mov edx, 3
call fcn.00404980
mov eax, dword [ebp - 0x10c]
call fcn.00404ac0
mov edx, eax
lea eax, [ebp - 0x108]
call fcn.004047f4
mov eax, dword [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
mov ecx, dword [ebx]
mov edx, 0x41ad4c
call fcn.0040490c
mov eax, dword [ebp - 0x114]
call fcn.00404ac0
mov edx, eax
lea eax, [ebp - 0x110]
call fcn.004047f4
mov eax, dword [ebp - 0x110]
pop edx
call fcn.00417c3c
push 0x41ad4c
push dword [ebx]
push 0x41ad80
lea eax, [ebp - 0x11c]
mov edx, 3
call fcn.00404980
mov eax, dword [ebp - 0x11c]
call fcn.00404ac0
mov edx, eax
lea eax, [ebp - 0x118]
call fcn.004047f4
mov eax, dword [ebp - 0x118]
push eax
lea eax, [ebp - 0x124]
mov ecx, dword [ebx]
mov edx, 0x41ad4c
call fcn.0040490c
mov eax, dword [ebp - 0x124]
call fcn.00404ac0
mov edx, eax
lea eax, [ebp - 0x120]
call fcn.004047f4
mov eax, dword [ebp - 0x120]
pop edx
call fcn.00417c3c
cmp dword [0x42b4f0], 0
je 0x41acc8
mov byte [ebp - 1], 1
mov eax, dword [0x42b4f0]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x41acc8
push 0x4000
mov eax, dword [0x42b510]
push eax
mov eax, dword [0x42b520]
push eax
mov eax, dword [0x42b524]
push eax
call sub.ntdll_NtFreeVirtualMemory
push 0x4000
mov eax, dword [0x42b510]
push eax
mov eax, dword [0x42b51c]
push eax
push 0
call sub.ntdll_NtFreeVirtualMemory
push 0x4000
mov eax, esi
mov edx, dword [eax]
call dword [edx]
push eax
mov eax, dword [0x42b518]
push eax
push 0
call sub.ntdll_NtFreeVirtualMemory
mov eax, dword [0x42b524]
push eax
call sub.ntdll_NtClose
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ad29
lea eax, [ebp - 0x124]
mov edx, 0x48
call fcn.00404620
ret