Function at 0x41cb40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x7c6ee4]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
push edi
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
lea eax, [esp + 0x34]
mov edi, ecx
push eax
xorps xmm0, xmm0
mov dword [esp + 0x2c], edi
push ecx
mov edx, eax
movaps xmmword [esp + 0x3c], xmm0
call fcn.00418990
add esp, 0xc
test eax, eax
jne 0x41cd93
movzx ecx, byte [esp + 0x34]
movzx eax, byte [esp + 0x35]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x18], 0
movzx eax, byte [esp + 0x36]
shl ecx, 8
or ecx, eax
mov dword [edi + 0xc0], 0
movzx eax, byte [esp + 0x37]
shl ecx, 8
or ecx, eax
mov dword [edi + 0xc4], 0
movzx eax, byte [esp + 0x30]
cdq
mov dword [esp + 0x14], ecx
mov esi, eax
movzx eax, byte [esp + 0x31]
mov ecx, edx
shld ecx, esi, 8
cdq
shl esi, 8
or ecx, edx
or esi, eax
mov dword [edi + 0x40], 0
movzx eax, byte [esp + 0x32]
shld ecx, esi, 8
cdq
shl esi, 8
or ecx, edx
or esi, eax
mov dword [edi + 0x44], 0
movzx eax, byte [esp + 0x33]
shld ecx, esi, 8
movzx ecx, byte [esp + 0x3c]
cdq
shl esi, 8
xor edx, edx
or esi, eax
shl ecx, 8
movzx eax, byte [esp + 0x39]
or edx, esi
movzx esi, byte [esp + 0x38]
shl esi, 8
or esi, eax
mov dword [esp + 0x20], edx
movzx eax, byte [esp + 0x3a]
shl esi, 8
or esi, eax
mov dword [edi + 0x104], edx
movzx eax, byte [esp + 0x3b]
shl esi, 8
or esi, eax
mov dword [esp + 0x1c], 4
movzx eax, byte [esp + 0x3d]
or ecx, eax
mov dword [edi + 0x84], esi
movzx eax, byte [esp + 0x3e]
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x3f]
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0x18]
or eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov dword [edi + 0x80], eax
mov dword [edi + 0x100], ecx
shrd dword [esp + 0x18], esi, 1
shl ecx, 0x1f
and eax, 1
imul edx, eax, 0xe1000000
xor eax, eax
or dword [esp + 0x18], eax
shr esi, 1
or esi, ecx
mov ecx, dword [esp + 0x20]
shrd dword [esp + 0x14], ecx, 1
xor dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
shr ecx, 1
xor ecx, edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x20], ecx
mov dword [edi + eax*8 + 0x40], edx
mov edx, dword [esp + 0x14]
mov dword [edi + eax*8 + 0xc4], ecx
mov ecx, edx
mov dword [edi + eax*8 + 0x44], esi
mov dword [edi + eax*8 + 0xc0], edx
sar eax, 1
mov dword [esp + 0x1c], eax
test eax, eax
mov eax, dword [esp + 0x18]
jg 0x41cc91
mov ecx, 2
mov dword [esp + 0x20], ecx
nop
lea edx, [ecx + 8]
lea edx, [edi + edx*8]
lea edi, [edi + ecx*8]
add edi, 0xc0
mov eax, dword [edi]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x14], eax
mov eax, dword [edx]
mov dword [esp + 0x28], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x2c], eax
cmp ecx, 1
jle 0x41cd7e
mov eax, dword [esp + 0x24]
lea esi, [edx + 8]
add eax, 0x48
sub edi, edx
dec ecx
mov dword [esp + 0x1c], ecx
nop
mov edx, dword [eax + 0x80]
lea eax, [eax + 8]
mov ecx, dword [eax + 0x7c]
lea esi, [esi + 8]
xor edx, dword [esp + 0x18]
xor ecx, dword [esp + 0x14]
mov dword [edi + esi - 8], edx
mov edx, dword [esp + 0x28]
mov dword [edi + esi - 4], ecx
xor edx, dword [eax - 8]
mov ecx, dword [esp + 0x2c]
xor ecx, dword [eax - 4]
sub dword [esp + 0x1c], 1
mov dword [esi - 8], edx
mov dword [esi - 4], ecx
jne 0x41cd40
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
add ecx, ecx
mov dword [esp + 0x20], ecx
cmp ecx, 8
jle 0x41cd00
xor eax, eax
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
xor ecx, esp
call fcn.0050b38b
mov esp, ebp
pop ebp
ret