Function at 0x45f650
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
cmp dword [esp + 0x40], 0
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [esp], eax
je 0x45f7cd
cmp edi, 8
jb 0x45f701
mov ebx, dword [esp]
nop word [eax + eax]
xor ebx, dword [edx]
xor ecx, dword [edx + 4]
lea edx, [edx + 8]
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov ebx, edx
lea ecx, [esp + 4]
mov edx, esi
push 1
call fcn.0045e560
mov edx, ebx
add esp, 4
mov ebx, dword [esp + 4]
add edi, 0xfffffff8
mov eax, ebx
mov byte [ebp], bl
mov byte [ebp + 1], bh
shr eax, 0x10
mov byte [ebp + 2], al
mov eax, ebx
shr eax, 0x18
mov byte [ebp + 3], al
mov ecx, dword [esp + 8]
mov eax, ecx
mov byte [ebp + 4], cl
mov byte [ebp + 5], ch
shr eax, 0x10
mov byte [ebp + 6], al
mov eax, ecx
shr eax, 0x18
mov byte [ebp + 7], al
add ebp, 8
cmp edi, 7
ja 0x45f690
mov edi, dword [esp + 0x34]
mov dword [esp], ebx
mov ebx, dword [esp + 0x3c]
and edi, 7
test edi, edi
je 0x45f8f3
mov dword [esp + 0xc], ecx
mov ecx, edi
dec edi
xor eax, eax
cmp edi, 6
ja case.default.0x45f725
add edx, ecx
xor ecx, ecx
xor ebx, ebx
mov esi, edx
xor edx, edx
jmp dword [edi*4 + 0x58cb50]
movzx eax, byte [esi - 1]
dec esi
shl eax, 0x10
movzx ecx, byte [esi - 1]
dec esi
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi - 1]
dec esi
or eax, ecx
mov ecx, eax
movzx eax, byte [esi - 1]
dec esi
shl eax, 0x18
movzx edx, byte [esi - 1]
dec esi
mov ebx, ecx
shl edx, 0x10
or eax, edx
movzx ecx, byte [esi - 1]
dec esi
mov edx, ebx
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi - 1]
mov ebx, dword [esp + 0x3c]
or eax, ecx
mov ecx, dword [esp]
xor edx, dword [esp + 0xc]
xor eax, ecx
lea ecx, [esp + 4]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov edx, dword [esp + 0x38]
push 1
call fcn.0045e560
add esp, 4
mov edx, dword [esp + 4]
mov eax, edx
mov byte [ebp], dl
mov byte [ebp + 1], dh
shr eax, 0x10
mov byte [ebp + 2], al
mov eax, edx
shr eax, 0x18
mov byte [ebp + 3], al
mov ecx, dword [esp + 8]
mov eax, ecx
mov byte [ebp + 4], cl
mov byte [ebp + 5], ch
shr eax, 0x10
mov byte [ebp + 6], al
mov eax, ecx
shr eax, 0x18
mov byte [ebp + 7], al
jmp 0x45f8f6
cmp edi, 8
jb 0x45f86a
mov esi, dword [esp]
nop dword [eax]
mov eax, dword [edx]
mov dword [esp + 0x10], edi
mov ebx, esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 4], eax
mov dword [esp], eax
mov edi, dword [edx + 4]
add edx, 8
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
push 0
call fcn.0045e560
mov ecx, edi
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
add esp, 4
xor ebx, dword [esp + 4]
xor esi, dword [esp + 8]
add edi, 0xfffffff8
mov eax, ebx
mov byte [ebp], bl
mov byte [ebp + 1], bh
shr ebx, 0x18
shr eax, 0x10
mov byte [ebp + 2], al
mov byte [ebp + 3], bl
mov ebx, esi
mov esi, dword [esp]
mov eax, ebx
mov byte [ebp + 4], bl
mov byte [ebp + 5], bh
shr ebx, 0x18
shr eax, 0x10
mov byte [ebp + 6], al
mov byte [ebp + 7], bl
add ebp, 8
cmp edi, 7
ja 0x45f7e0
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
and edi, 7
test edi, edi
je 0x45f8f3
mov eax, edx
mov dword [esp + 0xc], ecx
mov edx, esi
mov esi, dword [esp]
mov ecx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp + 0x10], ecx
lea ecx, [esp + 4]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 8], eax
push 0
call fcn.0045e560
add esp, 4
lea eax, [edi - 1]
cmp eax, 6
ja case.default.0x45f8b8
mov edx, dword [esp + 0xc]
mov ecx, esi
add ebp, edi
xor ecx, dword [esp + 4]
xor edx, dword [esp + 8]
jmp dword [eax*4 + 0x58cb6c]
mov eax, edx
shr eax, 0x10
mov byte [ebp - 1], al
dec ebp
mov byte [ebp - 1], dh
dec ebp
mov byte [ebp - 1], dl
dec ebp
mov eax, ecx
shr eax, 0x18
mov byte [ebp - 1], al
dec ebp
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 1], al
dec ebp
mov byte [ebp - 1], ch
dec ebp
mov byte [ebp - 1], cl
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
jmp 0x45f8f6
mov edx, dword [esp]
mov eax, edx
mov byte [ebx], dl
mov byte [ebx + 1], dh
shr edx, 0x18
shr eax, 0x10
mov byte [ebx + 2], al
mov eax, ecx
mov byte [ebx + 3], dl
mov byte [ebx + 4], cl
mov byte [ebx + 5], ch
shr ecx, 0x18
shr eax, 0x10
mov byte [ebx + 6], al
mov byte [ebx + 7], cl
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
xor edx, edx
jmp 0x45f771