Function at 0x45f610
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x10], esi
test edi, edi
je 0x45fb1d
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x45fb1d
cmp esi, 0x10
je 0x45f649
cmp esi, 0x20
je 0x45f649
pop edi
pop esi
mov eax, 3
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x45f672
mov eax, esi
cdq
and edx, 7
add eax, edx
sar eax, 3
lea eax, [eax*2 + 6]
cmp ecx, eax
je 0x45f672
pop edi
pop esi
mov eax, 4
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
cdq
and edx, 7
add eax, edx
sar eax, 3
lea eax, [eax*2 + 6]
mov dword [ebx + 0x1e0], eax
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 3]
shl ecx, 8
or ecx, eax
mov dword [ebx], ecx
movzx esi, byte [edi + 4]
movzx eax, byte [edi + 5]
shl esi, 8
or esi, eax
mov dword [ebp - 8], ecx
movzx eax, byte [edi + 6]
shl esi, 8
or esi, eax
movzx eax, byte [edi + 7]
shl esi, 8
or esi, eax
lea eax, [ebx + 4]
mov dword [eax], esi
movzx edx, byte [edi + 8]
movzx ecx, byte [edi + 9]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 0xa]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 0xb]
shl edx, 8
or edx, ecx
mov dword [ebx + 8], edx
movzx ecx, byte [edi + 0xd]
mov dword [ebp - 0xc], edx
movzx edx, byte [edi + 0xc]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 0xe]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 0xf]
shl edx, 8
or edx, ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
mov dword [ebx + 0xc], edx
cmp ecx, 0x10
jne 0x45f7f0
mov ecx, edx
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [ebp - 4]
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x64d650]
xor edx, dword [ecx*4 + 0x64a158]
mov ecx, dword [ebp - 4]
shr ecx, 0x18
xor edx, dword [ecx*4 + str.cwko0]
mov ecx, dword [ebp - 4]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x64ad58]
xor edx, dword [ebp - 8]
xor edx, 0x1000000
xor esi, edx
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x14], esi
xor esi, dword [ebp - 0xc]
mov dword [ebx + 0x18], esi
xor esi, dword [ebp - 4]
mov dword [ebx + 0x1c], esi
mov esi, 0x64b55c
mov ebx, dword [eax + 0x18]
lea eax, [eax + 0x10]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x64d650]
xor edx, dword [ecx*4 + 0x64a158]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + str.cwko0]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x64ad58]
xor edx, dword [eax - 4]
xor edx, dword [esi]
add esi, 4
mov dword [eax + 0xc], edx
mov ecx, dword [eax]
xor ecx, edx
mov dword [eax + 0x10], ecx
mov edx, dword [eax + 4]
xor edx, ecx
mov dword [eax + 0x14], edx
xor edx, ebx
mov dword [eax + 0x18], edx
cmp esi, 0x64b580
jne 0x45f782
mov ebx, dword [ebp + 0xc]
mov eax, 0xa0
jmp 0x45f9b2
cmp ecx, 0x20
jne 0x45fb11
movzx ecx, byte [edi + 0x10]
movzx eax, byte [edi + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x12]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x13]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x10], ecx
movzx ecx, byte [edi + 0x14]
movzx eax, byte [edi + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x17]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x14], ecx
movzx ecx, byte [edi + 0x18]
movzx eax, byte [edi + 0x19]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x1a]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x1b]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x18], ecx
movzx edx, byte [edi + 0x1c]
movzx eax, byte [edi + 0x1d]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 0x1e]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 0x1f]
shl edx, 8
mov edi, 0x64b55c
or edx, eax
mov eax, edx
mov dword [ebx + 0x1c], edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x64d650]
xor ecx, dword [eax*4 + 0x64a158]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + str.cwko0]
movzx eax, dl
xor ecx, dword [eax*4 + 0x64ad58]
mov eax, 0xffffffd0
xor ecx, dword [ebp - 8]
xor ecx, 0x1000000
xor esi, ecx
mov dword [ebx + 0x20], ecx
mov dword [ebx + 0x24], esi
xor esi, dword [ebp - 0xc]
mov dword [ebx + 0x28], esi
xor esi, dword [ebp - 4]
sub eax, ebx
mov dword [ebx + 0x2c], esi
lea esi, [ebx + 0x30]
mov dword [ebp - 0x10], eax
mov edx, dword [esi - 4]
ror edx, 8
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x64d650]
xor ecx, dword [eax*4 + 0x64a158]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + str.cwko0]
movzx eax, dl
xor ecx, dword [eax*4 + 0x64ad58]
xor ecx, dword [esi - 0x20]
mov eax, dword [esi - 0x1c]
xor eax, ecx
mov dword [esi], ecx
mov ecx, dword [esi - 0x18]
xor ecx, eax
mov dword [esi + 4], eax
mov eax, dword [esi - 0x14]
xor eax, ecx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
add esi, 0x20
mov eax, dword [ebp - 0x10]
add eax, esi
sar eax, 2
mov edx, dword [ebx + eax*4 + 0x1c]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x64d650]
xor ecx, dword [eax*4 + 0x64a158]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + str.cwko0]
movzx eax, dl
xor ecx, dword [eax*4 + 0x64ad58]
xor ecx, dword [esi - 0x30]
xor ecx, dword [edi]
add edi, 4
mov dword [esi - 0x10], ecx
mov eax, dword [esi - 0x2c]
xor eax, ecx
mov dword [esi - 0xc], eax
mov ecx, dword [esi - 0x28]
xor ecx, eax
mov dword [esi - 8], ecx
mov eax, dword [esi - 0x24]
xor eax, ecx
mov dword [esi - 4], eax
cmp edi, 0x64b574
jne 0x45f8e4
mov eax, 0xe0
lea edi, [eax + ebx]
mov dword [ebp - 0xc], 1
mov ecx, edi
lea esi, [ebx + 0xf0]
mov edx, esi
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [edx + 0xc], eax
cmp dword [ebx + 0x1e0], 1
jle 0x45faf0
nop dword [eax]
mov edx, dword [edi - 0x10]
sub edi, 0x10
mov eax, edx
add esi, 0x10
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x64b580]
xor ecx, dword [eax*4 + 0x64c980]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x64a958]
movzx eax, dl
xor ecx, dword [eax*4 + 0x64bd80]
mov dword [esi], ecx
mov edx, dword [edi + 4]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x64b580]
xor ecx, dword [eax*4 + 0x64c980]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x64a958]
movzx eax, dl
xor ecx, dword [eax*4 + 0x64bd80]
mov dword [esi + 4], ecx
mov edx, dword [edi + 8]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x64b580]
xor ecx, dword [eax*4 + 0x64c980]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x64a958]
movzx eax, dl
xor ecx, dword [eax*4 + 0x64bd80]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x64b580]
xor ecx, dword [eax*4 + 0x64c980]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x64a958]
movzx eax, dl
xor ecx, dword [eax*4 + 0x64bd80]
mov eax, dword [ebp - 0xc]
inc eax
mov dword [esi + 0xc], ecx
mov dword [ebp - 0xc], eax
cmp eax, dword [ebx + 0x1e0]
jl 0x45f9f0
mov eax, dword [edi - 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [edi - 8]
mov dword [esi + 0x18], eax
mov eax, dword [edi - 4]
pop edi
mov dword [esi + 0x1c], eax
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret