Function at 0x41c980
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.00474020
cmp dword [esp + 0x2c], 0
push ebx
push ebp
push esi
push edi
je 0x41cbc6
mov esi, dword [esp + 0x38]
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
movzx eax, byte [esi + 1]
movzx edx, byte [esi]
movzx ecx, byte [esi + 4]
shl eax, 8
or edx, eax
movzx eax, byte [esi + 2]
shl eax, 0x10
or edx, eax
movzx eax, byte [esi + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [esi + 5]
shl eax, 8
or ecx, eax
mov dword [esp + 0x10], edx
movzx eax, byte [esi + 6]
shl eax, 0x10
or ecx, eax
movzx eax, byte [esi + 7]
shl eax, 0x18
or ecx, eax
add ebp, 0xfffffff8
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x30], ebp
js 0x41cac7
lea eax, [ebp + 8]
shr eax, 3
mov dword [esp + 0x14], eax
neg eax
lea ebp, [ebp + eax*8]
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0x14]
movzx eax, byte [ebx + 1]
movzx edx, byte [ebx]
movzx ecx, byte [ebx + 4]
shl eax, 8
or edx, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
push dword [esp + 0x34]
or edx, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [ebx + 5]
xor edx, dword [esp + 0x14]
shl eax, 8
or ecx, eax
mov dword [esp + 0x20], edx
movzx eax, byte [ebx + 6]
shl eax, 0x10
or ecx, eax
movzx eax, byte [ebx + 7]
shl eax, 0x18
add ebx, 8
or ecx, eax
lea eax, [esp + 0x20]
xor ecx, dword [esp + 0x40]
push eax
mov dword [esp + 0x28], ecx
call fcn.0041cfe0
mov edx, dword [esp + 0x24]
add esp, 8
mov ecx, dword [esp + 0x20]
mov eax, edx
shr eax, 8
mov byte [edi], dl
mov byte [edi + 1], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 2], al
mov eax, edx
shr eax, 0x18
mov byte [edi + 3], al
mov eax, ecx
shr eax, 8
mov byte [edi + 4], cl
mov byte [edi + 5], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + 6], al
mov eax, ecx
shr eax, 0x18
mov byte [edi + 7], al
add edi, 8
mov dword [esp + 0x10], edx
mov dword [esp + 0x3c], ecx
dec ebp
jne 0x41ca13
mov ebp, dword [esp + 0x30]
cmp ebp, 0xfffffff8
je 0x41cb8d
mov eax, dword [esp + 0x30]
lea ecx, [ebp + 8]
add ecx, ebx
add eax, 7
xor ebx, ebx
xor ebp, ebp
cmp eax, 7
ja case.default.0x41cae5
jmp dword [eax*4 + 0x41ce18]
movzx ebx, byte [ecx - 1]
dec ecx
shl ebx, 0x18
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or ebx, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or ebx, eax
movzx eax, byte [ecx - 1]
dec ecx
or ebx, eax
movzx ebp, byte [ecx - 1]
dec ecx
shl ebp, 0x18
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or ebp, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or ebp, eax
movzx eax, byte [ecx - 1]
or ebp, eax
push dword [esp + 0x34]
xor ebx, dword [esp + 0x40]
lea eax, [esp + 0x20]
xor ebp, edx
mov dword [esp + 0x24], ebx
push eax
mov dword [esp + 0x24], ebp
call fcn.0041cfe0
mov edx, dword [esp + 0x24]
add esp, 8
mov ecx, dword [esp + 0x20]
mov eax, edx
shr eax, 8
mov byte [edi], dl
mov byte [edi + 1], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 2], al
mov eax, edx
shr eax, 0x18
mov byte [edi + 3], al
mov eax, ecx
shr eax, 8
mov byte [edi + 4], cl
mov byte [edi + 5], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + 6], al
mov eax, ecx
shr eax, 0x18
mov byte [edi + 7], al
mov byte [esi], dl
mov eax, edx
shr eax, 8
mov byte [esi + 1], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, ecx
shr edx, 0x18
mov byte [esi + 3], dl
mov byte [esi + 4], cl
shr eax, 8
mov byte [esi + 5], al
mov eax, ecx
shr eax, 0x10
pop edi
mov byte [esi + 6], al
shr ecx, 0x18
mov byte [esi + 7], cl
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x14], ebx
movzx eax, byte [ebx + 1]
movzx ecx, byte [ebx]
movzx edx, byte [ebx + 4]
shl eax, 8
or ecx, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
or ecx, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
or ecx, eax
movzx eax, byte [ebx + 5]
shl eax, 8
or edx, eax
mov dword [esp + 0x3c], ecx
movzx eax, byte [ebx + 6]
shl eax, 0x10
or edx, eax
movzx eax, byte [ebx + 7]
shl eax, 0x18
or edx, eax
add edi, 0xfffffff8
mov dword [esp + 0x10], edx
js 0x41cd06
mov ebx, dword [esp + 0x2c]
lea eax, [edi + 8]
shr eax, 3
mov dword [esp + 0x30], eax
neg eax
lea edi, [edi + eax*8]
mov dword [esp + 0x18], edi
jmp 0x41cc40
movzx eax, byte [ebp + 1]
movzx edi, byte [ebp]
movzx esi, byte [ebp + 4]
shl eax, 8
or edi, eax
movzx eax, byte [ebp + 2]
shl eax, 0x10
push dword [esp + 0x34]
or edi, eax
movzx eax, byte [ebp + 3]
shl eax, 0x18
or edi, eax
movzx eax, byte [ebp + 5]
shl eax, 8
or esi, eax
mov dword [esp + 0x20], edi
movzx eax, byte [ebp + 6]
shl eax, 0x10
or esi, eax
movzx eax, byte [ebp + 7]
shl eax, 0x18
add ebp, 8
or esi, eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x28], esi
call fcn.0041ce60
mov ecx, dword [esp + 0x24]
add esp, 8
xor ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x20]
mov eax, ecx
xor edx, dword [esp + 0x10]
mov byte [ebx], cl
shr eax, 8
mov byte [ebx + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 2], al
mov eax, edx
shr ecx, 0x18
mov byte [ebx + 3], cl
mov ecx, edi
mov byte [ebx + 4], dl
shr eax, 8
mov byte [ebx + 5], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [ebx + 6], al
mov byte [ebx + 7], dl
add ebx, 8
dec dword [esp + 0x30]
mov edx, esi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x10], edx
jne 0x41cc40
mov edi, dword [esp + 0x18]
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x30]
jmp 0x41cd0a
mov esi, dword [esp + 0x2c]
cmp edi, 0xfffffff8
je 0x41cdde
movzx eax, byte [ebp + 1]
movzx ecx, byte [ebp]
movzx edx, byte [ebp + 4]
push dword [esp + 0x34]
shl eax, 8
or ecx, eax
movzx eax, byte [ebp + 2]
shl eax, 0x10
or ecx, eax
movzx eax, byte [ebp + 3]
shl eax, 0x18
or ecx, eax
movzx eax, byte [ebp + 5]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
movzx ecx, byte [ebp + 7]
shl eax, 8
or edx, eax
shl ecx, 8
movzx eax, byte [ebp + 6]
or ecx, eax
lea eax, [esp + 0x20]
shl ecx, 0x10
or edx, ecx
push eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], edx
call fcn.0041ce60
mov edx, dword [esp + 0x24]
lea ecx, [edi + 8]
mov eax, dword [esp + 0x28]
add edi, 7
xor eax, dword [esp + 0x18]
add esp, 8
xor edx, dword [esp + 0x3c]
add ecx, esi
mov dword [esp + 0x30], eax
cmp edi, 7
ja case.default.0x41cd93
jmp dword [edi*4 + 0x41ce38]
dec ecx
shr eax, 0x18
mov byte [ecx], al
mov eax, dword [esp + 0x30]
dec ecx
shr eax, 0x10
mov byte [ecx], al
mov eax, dword [esp + 0x30]
dec ecx
shr eax, 8
mov byte [ecx], al
mov eax, dword [esp + 0x30]
dec ecx
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 0x18
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 0x10
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 8
mov byte [ecx], al
mov byte [ecx - 1], dl
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov byte [ebx], cl
mov eax, ecx
shr eax, 8
mov byte [ebx + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 2], al
mov eax, edx
shr ecx, 0x18
mov byte [ebx + 3], cl
mov byte [ebx + 4], dl
shr eax, 8
mov byte [ebx + 5], al
mov eax, edx
pop edi
shr eax, 0x10
pop esi
mov byte [ebx + 6], al
shr edx, 0x18
pop ebp
mov byte [ebx + 7], dl
pop ebx
add esp, 0x14
ret