Function at 0x401a60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 0x18]
push edi
movzx edx, byte [esi + 1]
movzx eax, byte [esi]
movzx ecx, byte [esi + 7]
shl edx, 8
or edx, eax
shl ecx, 8
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
cmp dword [ebp + 0x1c], 0
mov dword [ebp - 4], edx
je 0x401c5c
movzx ebx, byte [esi + 4]
mov edi, dword [ebp + 8]
or ebx, eax
movzx eax, byte [esi + 6]
mov esi, dword [ebp + 0xc]
or ecx, eax
shl ecx, 0x10
or ebx, ecx
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff8
mov dword [ebp - 0xc], ecx
js 0x401b89
lea eax, [ecx + 8]
shr eax, 3
mov dword [ebp - 0x10], eax
neg eax
lea ecx, [ecx + eax*8]
mov dword [ebp - 0xc], ecx
nop dword [eax]
movzx eax, byte [edi + 1]
movzx edx, byte [edi]
movzx ecx, byte [edi + 4]
shl eax, 8
or edx, eax
movzx eax, byte [edi + 2]
shl eax, 0x10
or edx, eax
movzx eax, byte [edi + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [edi + 5]
xor edx, dword [ebp - 4]
shl eax, 8
or ecx, eax
mov dword [ebp - 0x20], edx
movzx eax, byte [edi + 6]
mov edx, dword [ebp + 0x14]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edi + 7]
shl eax, 0x18
add edi, 8
or ecx, eax
xor ecx, ebx
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x20]
push 1
call fcn.00401520
mov edx, dword [ebp - 0x20]
add esp, 4
mov ebx, dword [ebp - 0x1c]
mov eax, edx
shr eax, 8
mov byte [esi], dl
mov byte [esi + 1], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, edx
shr eax, 0x18
mov byte [esi + 3], al
mov eax, ebx
shr eax, 8
mov byte [esi + 4], bl
mov byte [esi + 5], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 6], al
mov eax, ebx
shr eax, 0x18
mov byte [esi + 7], al
add esi, 8
sub dword [ebp - 0x10], 1
mov dword [ebp - 4], edx
jne 0x401ae0
mov ecx, dword [ebp - 0xc]
cmp ecx, 0xfffffff8
je 0x401e35
mov edx, dword [ebp - 0xc]
add edi, 8
add ecx, edi
add edx, 7
xor eax, eax
mov dword [ebp - 0x14], edx
xor edi, edi
mov dword [ebp - 8], eax
cmp edx, 7
ja case.default.0x401bac
jmp dword [edx*4 + 0x401e94]
movzx edi, byte [ecx - 1]
dec ecx
shl edi, 0x18
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or edi, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or edi, eax
movzx eax, byte [ecx - 1]
dec ecx
or edi, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x18
mov dword [ebp - 8], eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or dword [ebp - 8], eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or dword [ebp - 8], eax
movzx eax, byte [ecx - 1]
or dword [ebp - 8], eax
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 4]
lea ecx, [ebp - 0x20]
mov edx, dword [ebp + 0x14]
xor edi, ebx
push 1
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edi
call fcn.00401520
mov edx, dword [ebp - 0x20]
add esp, 4
mov ebx, dword [ebp - 0x1c]
mov eax, edx
shr eax, 8
mov byte [esi], dl
mov byte [esi + 1], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, edx
shr eax, 0x18
mov byte [esi + 3], al
mov eax, ebx
shr eax, 8
mov byte [esi + 4], bl
mov byte [esi + 5], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 6], al
mov eax, ebx
shr eax, 0x18
mov byte [esi + 7], al
jmp 0x401e35
movzx edi, byte [esi + 4]
mov ebx, dword [ebp + 8]
or edi, eax
movzx eax, byte [esi + 6]
or ecx, eax
shl ecx, 0x10
or edi, ecx
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff8
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], ecx
js 0x401d6d
lea eax, [ecx + 8]
shr eax, 3
mov dword [ebp - 0x14], eax
neg eax
lea ecx, [ecx + eax*8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
nop dword [eax]
movzx eax, byte [ebx + 1]
lea ecx, [ebp - 0x20]
movzx edi, byte [ebx]
movzx esi, byte [ebx + 4]
shl eax, 8
or edi, eax
mov edx, dword [ebp + 0x14]
movzx eax, byte [ebx + 2]
shl eax, 0x10
or edi, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
or edi, eax
movzx eax, byte [ebx + 5]
shl eax, 8
or esi, eax
mov dword [ebp - 0x18], edi
movzx eax, byte [ebx + 6]
shl eax, 0x10
or esi, eax
mov dword [ebp - 0x20], edi
movzx eax, byte [ebx + 7]
add ebx, 8
shl eax, 0x18
or esi, eax
push 0
mov dword [ebp - 0x1c], esi
call fcn.00401520
mov eax, dword [ebp - 8]
add esp, 4
mov ecx, dword [ebp - 0x20]
xor ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
mov byte [eax], cl
inc eax
xor edx, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, ecx
mov edi, dword [ebp - 8]
inc dword [ebp - 8]
shr eax, 8
mov byte [edi], al
mov eax, ecx
mov edi, dword [ebp - 8]
shr eax, 0x10
shr ecx, 0x18
mov byte [edi], al
mov eax, edi
inc eax
mov edi, esi
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], edi
mov byte [eax], cl
mov ecx, eax
mov eax, edx
shr eax, 8
mov byte [ecx + 1], dl
mov byte [ecx + 2], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [ecx + 3], al
mov byte [ecx + 4], dl
add ecx, 5
sub dword [ebp - 0x14], 1
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
jne 0x401ca0
mov esi, ecx
mov ecx, dword [ebp - 0xc]
jmp 0x401d70
mov esi, dword [ebp + 0xc]
cmp ecx, 0xfffffff8
je 0x401e32
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]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], ecx
movzx ecx, byte [ebx + 7]
shl eax, 8
or edx, eax
shl ecx, 8
movzx eax, byte [ebx + 6]
or ecx, eax
shl ecx, 0x10
or edx, ecx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp + 0x14]
push 0
call fcn.00401520
mov eax, dword [ebp - 0xc]
add esp, 4
mov ebx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
xor ebx, dword [ebp - 4]
xor edx, edi
lea ecx, [eax + 8]
add eax, 7
add ecx, esi
cmp eax, 7
ja case.default.0x401ded
jmp dword [eax*4 + 0x401eb4]
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
dec ecx
mov byte [ecx], dl
dec ecx
mov eax, ebx
shr eax, 0x18
mov byte [ecx], al
dec ecx
mov eax, ebx
shr eax, 0x10
mov byte [ecx], al
dec ecx
mov eax, ebx
shr eax, 8
mov byte [ecx], al
mov byte [ecx - 1], bl
mov edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
jmp 0x401e35
mov ebx, dword [ebp - 0x10]
mov eax, ebx
mov ecx, ebx
shr eax, 0x10
mov dword [ebp - 4], eax
mov eax, ebx
shr eax, 8
mov dword [ebp - 8], eax
mov eax, edx
shr eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, edx
shr eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, edx
shr ecx, 0x18
shr eax, 8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
pop edi
pop esi
mov byte [eax], dl
mov edx, dword [ebp - 0x14]
mov byte [eax + 1], dl
mov edx, dword [ebp - 0x10]
mov byte [eax + 2], dl
mov edx, dword [ebp - 0xc]
mov byte [eax + 3], dl
mov edx, dword [ebp - 8]
mov byte [eax + 4], bl
mov byte [eax + 5], dl
mov edx, dword [ebp - 4]
mov byte [eax + 6], dl
mov byte [eax + 7], cl
pop ebx
mov esp, ebp
pop ebp
ret