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

Disassembly:
push 0xffffffffffffffff
push 0x4c42e0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e5d60]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
push 0x4cf374
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
call fcn.0040f300
push str.COMPFILES
push str.DATA_BIN
push edi
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x413547
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x34]
push 0x4cf374
mov ecx, esi
call fcn.0040f300
jmp 0x413709
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
cmp ebp, ebx
jne 0x41356a
mov esi, dword [esp + 0x34]
push 0x4cf374
mov ecx, esi
call fcn.0040f300
jmp 0x413709
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
jne 0x41358b
mov esi, dword [esp + 0x34]
push 0x4cf374
mov ecx, esi
call fcn.0040f300
jmp 0x413709
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x1c], eax
cmp eax, ebx
jne 0x4135af
mov esi, dword [esp + 0x34]
push 0x4cf374
mov ecx, esi
call fcn.0040f300
jmp 0x413709
push 0xa064
call fcn.00498c53
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x4135e0
mov esi, dword [esp + 0x34]
push 0x4cf374
mov ecx, esi
call fcn.0040f300
lea ecx, [esp + 0x14]
call fcn.0040ed20
jmp 0x413731
push 0xa064
push ebx
push esi
call fcn.004aaf30
add esp, 0xc
mov ebx, 1
add dword [esp + 0x18], ebx
cmp ebp, 0xa000
jae 0x413606
mov edi, ebp
xor ebp, ebp
jmp 0x413611
sub ebp, 0xa000
mov edi, 0xa000
mov ecx, dword [esp + 0x1c]
push edi
push ecx
push 0xa000
push esi
call fcn.004a6868
add esp, 0x10
test eax, eax
jne 0x413747
mov edx, edi
shr edx, 2
test edx, edx
jle 0x41367b
cmp dword [esp + 0x18], ebx
ja case.0x41364b.0
cmp eax, 0x64
jg case.0x41364b.0
mov ecx, eax
and ecx, 3
cmp ecx, 3
ja case.default.0x41364b
jmp dword [ecx*4 + 0x413764]
add dword [esi + eax*4], 0xd9bd9b7b
jmp case.default.0x41364b
add dword [esi + eax*4], 0xbaab1234
jmp case.default.0x41364b
mov ecx, dword [esi + eax*4]
not ecx
mov dword [esi + eax*4], ecx
jmp case.default.0x41364b
xor dword [esi + eax*4], 0x85858585
add eax, ebx
cmp eax, edx
jl 0x413636
mov ecx, edi
and ecx, 3
lea eax, [edx*4]
cmp eax, ecx
jge 0x41369a
jmp 0x413690
xor byte [esi + eax], 0x85
add eax, ebx
cmp eax, ecx
jl 0x413690
push esi
lea edx, [esp + 0x24]
push edx
call fcn.0041b510
mov byte [esp + 0x2c], bl
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.0040d7e0
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4136de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add dword [esp + 0x1c], edi
test ebp, ebp
jne 0x4135f4
push esi
call fcn.00498c5e
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
push eax
call fcn.0040ec90
mov esi, dword [esp + 0x3c]
add esp, 8
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413731
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push esi
call fcn.00498c5e
mov esi, dword [esp + 0x38]
add esp, 4
push 0x4cf374
mov ecx, esi
call fcn.0040f300
jmp 0x413709