Function at 0x4060cd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, eax
mov edx, dword [ebx]
push esi
push edi
mov esi, ecx
mov edi, edx
ror edi, 8
mov eax, 0xff00ff00
and edi, eax
rol edx, 8
mov ecx, 0xff00ff
and edx, ecx
or edi, edx
xor edi, dword [esi]
mov edx, dword [ebx + 4]
mov dword [ebp - 8], edi
mov edi, edx
ror edi, 8
and edi, eax
rol edx, 8
and edx, ecx
or edi, edx
xor edi, dword [esi + 4]
mov dword [ebp - 4], edi
mov edi, dword [ebx + 8]
mov ebx, dword [ebx + 0xc]
mov edx, edi
ror edx, 8
and edx, eax
rol edi, 8
and edi, ecx
or edx, edi
xor edx, dword [esi + 8]
mov edi, ebx
ror edi, 8
and edi, eax
rol ebx, 8
and ebx, ecx
or edi, ebx
xor edi, dword [esi + 0xc]
mov eax, 0xff
mov dword [ebp - 0x14], edi
shr edi, 0x10
and edi, eax
mov ecx, dword [edi*4 + 0x40bf70]
mov edi, dword [ebp - 8]
shr edi, 0x18
movzx ebx, dh
xor ecx, dword [ebx*4 + 0x40c370]
xor ecx, dword [edi*4 + 0x40bb70]
mov edi, dword [ebp - 4]
and edi, eax
xor ecx, dword [edi*4 + 0x40c770]
mov edi, dword [ebp - 8]
xor ecx, dword [esi + 0x10]
shr edi, 0x10
mov dword [ebp - 0x10], ecx
movzx ecx, byte [ebp - 0x13]
mov ecx, dword [ecx*4 + 0x40c370]
and edi, eax
xor ecx, dword [edi*4 + 0x40bf70]
mov edi, dword [ebp - 4]
shr edi, 0x18
xor ecx, dword [edi*4 + 0x40bb70]
mov edi, edx
and edi, eax
xor ecx, dword [edi*4 + 0x40c770]
movzx edi, byte [ebp - 7]
xor ecx, dword [esi + 0x14]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 4]
shr ecx, 0x10
and ecx, eax
mov ecx, dword [ecx*4 + 0x40bf70]
xor ecx, dword [edi*4 + 0x40c370]
mov edi, edx
shr edi, 0x18
xor ecx, dword [edi*4 + 0x40bb70]
mov edi, dword [ebp - 0x14]
and edi, eax
xor ecx, dword [edi*4 + 0x40c770]
movzx edi, byte [ebp - 3]
xor ecx, dword [esi + 0x18]
shr edx, 0x10
and edx, eax
mov edx, dword [edx*4 + 0x40bf70]
xor edx, dword [edi*4 + 0x40c370]
mov edi, dword [ebp - 0x14]
shr edi, 0x18
xor edx, dword [edi*4 + 0x40bb70]
mov edi, dword [ebp - 8]
and edi, eax
xor edx, dword [edi*4 + 0x40c770]
mov edi, dword [ebp + 8]
xor edx, dword [esi + 0x1c]
sar edi, 1
add esi, 0x20
dec edi
mov dword [ebp - 0x18], edi
je 0x4063f0
mov edi, edx
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x40bf70]
movzx ebx, ch
xor edi, dword [ebx*4 + 0x40c370]
mov ebx, dword [ebp - 0xc]
mov dword [ebp + 8], edi
mov edi, dword [ebp - 0x10]
shr edi, 0x18
mov edi, dword [edi*4 + 0x40bb70]
xor dword [ebp + 8], edi
mov edi, dword [ebp + 8]
and ebx, eax
xor edi, dword [ebx*4 + 0x40c770]
mov ebx, dword [ebp - 0x10]
xor edi, dword [esi]
shr ebx, 0x10
mov dword [ebp - 8], edi
movzx edi, dh
mov edi, dword [edi*4 + 0x40c370]
and ebx, eax
xor edi, dword [ebx*4 + 0x40bf70]
mov ebx, dword [ebp - 0xc]
mov dword [ebp + 8], edi
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x40bb70]
mov ebx, ecx
and ebx, eax
xor edi, dword [ebx*4 + 0x40c770]
movzx ebx, byte [ebp - 0xf]
xor edi, dword [esi + 4]
mov dword [ebp + 8], ebx
mov dword [ebp - 4], edi
mov edi, dword [ebp - 0xc]
shr edi, 0x10
and edi, eax
mov ebx, dword [edi*4 + 0x40bf70]
mov edi, dword [ebp + 8]
xor ebx, dword [edi*4 + 0x40c370]
mov edi, ecx
shr edi, 0x18
xor ebx, dword [edi*4 + 0x40bb70]
mov edi, edx
and edi, eax
xor ebx, dword [edi*4 + 0x40c770]
movzx edi, byte [ebp - 0xb]
xor ebx, dword [esi + 8]
shr edx, 0x18
shr ecx, 0x10
and ecx, eax
mov ecx, dword [ecx*4 + 0x40bf70]
xor ecx, dword [edi*4 + 0x40c370]
movzx edi, bh
xor ecx, dword [edx*4 + 0x40bb70]
mov edx, dword [ebp - 0x10]
and edx, eax
xor ecx, dword [edx*4 + 0x40c770]
xor ecx, dword [esi + 0xc]
mov edx, ecx
shr edx, 0x10
and edx, eax
mov edx, dword [edx*4 + 0x40bf70]
xor edx, dword [edi*4 + 0x40c370]
mov edi, dword [ebp - 8]
shr edi, 0x18
xor edx, dword [edi*4 + 0x40bb70]
mov edi, dword [ebp - 4]
and edi, eax
xor edx, dword [edi*4 + 0x40c770]
mov edi, dword [ebp - 8]
xor edx, dword [esi + 0x10]
shr edi, 0x10
mov dword [ebp - 0x10], edx
movzx edx, ch
mov edx, dword [edx*4 + 0x40c370]
and edi, eax
xor edx, dword [edi*4 + 0x40bf70]
mov edi, dword [ebp - 4]
mov dword [ebp - 0x14], ecx
shr edi, 0x18
xor edx, dword [edi*4 + 0x40bb70]
mov edi, ebx
and edi, eax
xor edx, dword [edi*4 + 0x40c770]
movzx edi, byte [ebp - 7]
xor edx, dword [esi + 0x14]
and ecx, eax
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
shr edx, 0x10
and edx, eax
mov edx, dword [edx*4 + 0x40bf70]
xor edx, dword [edi*4 + 0x40c370]
mov edi, ebx
shr edi, 0x18
xor edx, dword [edi*4 + 0x40bb70]
shr ebx, 0x10
xor edx, dword [ecx*4 + 0x40c770]
and ebx, eax
xor edx, dword [esi + 0x18]
mov edi, dword [ebx*4 + 0x40bf70]
mov ecx, edx
movzx edx, byte [ebp - 3]
xor edi, dword [edx*4 + 0x40c370]
mov edx, dword [ebp - 0x14]
shr edx, 0x18
xor edi, dword [edx*4 + 0x40bb70]
mov edx, dword [ebp - 8]
and edx, eax
xor edi, dword [edx*4 + 0x40c770]
add esi, 0x20
xor edi, dword [esi - 4]
dec dword [ebp - 0x18]
mov edx, edi
jne 0x406227
mov edi, edx
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x40cb70]
and edi, 0xff0000
movzx ebx, ch
mov ebx, dword [ebx*4 + 0x40cb70]
and ebx, 0xff00
xor edi, ebx
mov ebx, dword [ebp - 0x10]
shr ebx, 0x18
mov ebx, dword [ebx*4 + 0x40cb70]
and ebx, 0xff000000
xor edi, ebx
mov ebx, dword [ebp - 0xc]
and ebx, eax
movzx ebx, byte [ebx*4 + 0x40cb70]
xor edi, ebx
xor edi, dword [esi]
mov ebx, edi
ror ebx, 8
and ebx, 0xff00ff00
rol edi, 8
and edi, 0xff00ff
or ebx, edi
mov edi, dword [ebp + 0xc]
mov dword [edi], ebx
mov edi, dword [ebp - 0x10]
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x40cb70]
and edi, 0xff0000
movzx ebx, dh
mov ebx, dword [ebx*4 + 0x40cb70]
and ebx, 0xff00
xor edi, ebx
mov ebx, dword [ebp - 0xc]
shr ebx, 0x18
mov ebx, dword [ebx*4 + 0x40cb70]
and ebx, 0xff000000
xor edi, ebx
mov ebx, ecx
and ebx, eax
movzx ebx, byte [ebx*4 + 0x40cb70]
xor edi, ebx
xor edi, dword [esi + 4]
mov ebx, edi
ror ebx, 8
and ebx, 0xff00ff00
rol edi, 8
and edi, 0xff00ff
or ebx, edi
mov edi, dword [ebp + 0xc]
mov dword [edi + 4], ebx
mov edi, dword [ebp - 0xc]
movzx ebx, byte [ebp - 0xf]
mov ebx, dword [ebx*4 + 0x40cb70]
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x40cb70]
and ebx, 0xff00
and edi, 0xff0000
xor edi, ebx
mov ebx, ecx
shr ebx, 0x18
mov ebx, dword [ebx*4 + 0x40cb70]
and ebx, 0xff000000
xor edi, ebx
mov ebx, edx
and ebx, eax
movzx ebx, byte [ebx*4 + 0x40cb70]
xor edi, ebx
xor edi, dword [esi + 8]
mov ebx, edi
ror ebx, 8
and ebx, 0xff00ff00
rol edi, 8
and edi, 0xff00ff
or ebx, edi
mov edi, dword [ebp + 0xc]
mov dword [edi + 8], ebx
movzx ebx, byte [ebp - 0xb]
mov ebx, dword [ebx*4 + 0x40cb70]
shr ecx, 0x10
and ecx, eax
mov ecx, dword [ecx*4 + 0x40cb70]
shr edx, 0x18
mov edx, dword [edx*4 + 0x40cb70]
and ecx, 0xff0000
and ebx, 0xff00
xor ecx, ebx
and edx, 0xff000000
xor ecx, edx
mov edx, dword [ebp - 0x10]
and edx, eax
movzx eax, byte [edx*4 + 0x40cb70]
xor ecx, eax
xor ecx, dword [esi + 0xc]
mov eax, ecx
ror eax, 8
and eax, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or eax, ecx
mov dword [edi + 0xc], eax
pop edi
pop esi
pop ebx
leave
ret