Function at 0x42c6f4
Capabilities:
Encode data using xor
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov byte [ebp - 5], cl
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00406ab8
xor eax, eax
push ebp
push 0x42c9bb
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 6], 0
push 0xa
mov eax, dword [ebp - 4]
call fcn.00407120
push eax
mov eax, dword [0x435c4c]
push eax
call sub.kernel32.dll_FindResourceW
mov esi, eax
mov dword [ebx + 4], esi
test esi, esi
je 0x42c995
push esi
mov eax, dword [0x435c4c]
push eax
call sub.kernel32.dll_LoadResource
mov edi, eax
mov dword [ebx + 8], edi
test edi, edi
je 0x42c995
lea eax, [ebp - 0x20]
call fcn.0042c5ec
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov ecx, 0
call fcn.004070ac
mov eax, dword [ebp - 0x1c]
call fcn.0042c2c0
call fcn.0042c214
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_LockResource
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [0x435c4c]
push eax
call sub.kernel32.dll_SizeofResource
xor edx, edx
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], edx
cmp byte [ebp - 5], 0
je 0x42c968
mov eax, dword [ebx + 0x30]
call fcn.00403980
mov dword [ebx + 0x3c], eax
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 0x3c]
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
jmp 0x42c91d
lea edx, [ebx + 0x18]
mov eax, dword [ebx + 0x10]
mov ecx, 0x10
call fcn.00403b24
lea eax, [ebx + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [0x4320ac]
mov eax, dword [eax + 0xac]
mov edx, dword [ebp - 0xc]
sub dword [edx + 8], eax
mov eax, dword [0x4320ac]
mov eax, dword [eax + 0xa8]
mov edx, dword [ebp - 0xc]
sub dword [edx], eax
mov esi, 0x14
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0xc]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0xc]
add edx, edx
inc edx
imul edx
mov edx, 5
call fcn.0042c0c0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 4]
add edx, edx
inc edx
imul edx
mov edx, 5
call fcn.0042c0c0
mov edi, eax
mov eax, esi
add eax, eax
mov edx, dword [0x4320ac]
push dword [edx + eax*4 + 4]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
pop edx
sub eax, edx
mov edx, edi
call fcn.0042c0e0
xor eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov dword [edx + 8], eax
mov eax, esi
add eax, eax
mov edx, dword [0x4320ac]
push dword [edx + eax*4]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
pop edx
sub eax, edx
mov edx, dword [ebp - 0x14]
call fcn.0042c0e0
xor edi, eax
mov eax, dword [ebp - 0xc]
mov dword [eax], edi
dec esi
test esi, esi
jne 0x42c81b
mov eax, dword [0x4320ac]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0xc]
sub dword [edx + 0xc], eax
mov eax, dword [0x4320ac]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
sub dword [edx + 4], eax
mov byte [ebp - 0xd], 1
mov edx, dword [ebx + 0x14]
lea eax, [ebx + 0x18]
mov ecx, 0x10
call fcn.00403b24
add dword [ebx + 0x28], 0x10
adc dword [ebx + 0x2c], 0
add dword [ebx + 0x10], 0x10
add dword [ebx + 0x14], 0x10
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x34]
sub eax, dword [ebx + 0x28]
sbb edx, dword [ebx + 0x2c]
cmp edx, 0
jne 0x42c939
cmp eax, 0x10
jae 0x42c7df
jmp 0x42c93f
jge 0x42c7df
call fcn.0042c2e8
mov eax, dword [ebx + 0x30]
mov ecx, eax
add ecx, dword [ebx + 0x3c]
dec ecx
mov dword [ebx + 0x10], ecx
movzx eax, byte [ecx]
mov byte [ebx + 0x38], al
mov byte [ebp - 6], 1
movzx eax, al
mov edx, dword [ebx + 0x30]
sub edx, eax
dec edx
mov dword [ebx + 0x40], edx
jmp 0x42c98c
mov eax, dword [ebx + 0x30]
call fcn.00403980
mov esi, eax
mov dword [ebx + 0x3c], esi
mov edx, esi
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x30]
call fcn.00403b24
mov byte [ebp - 6], 1
mov eax, dword [ebx + 0x30]
mov dword [ebx + 0x40], eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_FreeResource
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42c9c2
lea eax, [ebp - 0x20]
call fcn.004069d4
lea eax, [ebp - 0x1c]
call fcn.004069f8
lea eax, [ebp - 4]
call fcn.004069d4
ret