Function at 0x405bf8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebx]
mov edx, ecx
ror edx, 8
push esi
push edi
mov esi, eax
mov eax, 0xff00ff00
and edx, eax
rol ecx, 8
mov edi, 0xff00ff
and ecx, edi
or edx, ecx
mov ecx, dword [ebx + 4]
xor edx, dword [esi]
mov ebx, ecx
ror ebx, 8
and ebx, eax
rol ecx, 8
and ecx, edi
or ebx, ecx
xor ebx, dword [esi + 4]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 8]
mov dword [ebp - 0xc], ecx
ror dword [ebp - 0xc], 8
and dword [ebp - 0xc], eax
rol ecx, 8
and ecx, edi
or dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0xc]
xor ecx, dword [esi + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 0xc]
mov ebx, ecx
ror ebx, 8
and ebx, eax
rol ecx, 8
and ecx, edi
mov edi, dword [ebp - 4]
or ebx, ecx
xor ebx, dword [esi + 0xc]
movzx ecx, byte [ebp - 7]
mov ecx, dword [ecx*4 + 0x40af70]
shr edi, 0x10
mov eax, 0xff
and edi, eax
xor ecx, dword [edi*4 + 0x40ab70]
mov dword [ebp - 0x10], ebx
and ebx, eax
mov edi, edx
shr edi, 0x18
xor ecx, dword [edi*4 + 0x40a770]
movzx edi, byte [ebp - 0xf]
xor ecx, dword [ebx*4 + 0x40b370]
mov edi, dword [edi*4 + 0x40af70]
mov ebx, dword [ebp - 8]
shr ebx, 0x10
and ebx, eax
xor edi, dword [ebx*4 + 0x40ab70]
mov ebx, dword [ebp - 4]
xor ecx, dword [esi + 0x10]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x40a770]
mov ebx, edx
and ebx, eax
xor edi, dword [ebx*4 + 0x40b370]
movzx ebx, dh
xor edi, dword [esi + 0x14]
mov dword [ebp + 0xc], edi
mov edi, dword [ebp - 0x10]
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x40ab70]
xor edi, dword [ebx*4 + 0x40af70]
mov ebx, dword [ebp - 8]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x40a770]
mov ebx, dword [ebp - 4]
and ebx, eax
xor edi, dword [ebx*4 + 0x40b370]
shr edx, 0x10
xor edi, dword [esi + 0x18]
and edx, eax
mov dword [ebp - 0xc], edi
movzx edi, byte [ebp - 3]
mov dword [ebp - 0x14], edx
mov edx, dword [edi*4 + 0x40af70]
mov edi, dword [ebp - 0x14]
xor edx, dword [edi*4 + 0x40ab70]
mov edi, dword [ebp - 0x10]
shr edi, 0x18
xor edx, dword [edi*4 + 0x40a770]
mov edi, dword [ebp - 8]
and edi, eax
xor edx, dword [edi*4 + 0x40b370]
mov edi, dword [ebp + 8]
xor edx, dword [esi + 0x1c]
sar edi, 1
add esi, 0x20
dec edi
mov dword [ebp - 0x14], edi
je 0x405f2e
movzx edi, byte [ebp - 0xb]
mov edi, dword [edi*4 + 0x40af70]
mov ebx, dword [ebp + 0xc]
shr ebx, 0x10
and ebx, eax
xor edi, dword [ebx*4 + 0x40ab70]
mov ebx, ecx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x40a770]
mov ebx, edx
and ebx, eax
xor edi, dword [ebx*4 + 0x40b370]
mov ebx, dword [ebp - 0xc]
xor edi, dword [esi]
shr ebx, 0x10
mov dword [ebp + 8], edi
movzx edi, dh
mov edi, dword [edi*4 + 0x40af70]
and ebx, eax
xor edi, dword [ebx*4 + 0x40ab70]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x10], edi
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x40a770]
mov ebx, ecx
and ebx, eax
xor edi, dword [ebx*4 + 0x40b370]
movzx ebx, ch
xor edi, dword [esi + 4]
shr ecx, 0x10
mov dword [ebp - 4], edi
mov edi, edx
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x40ab70]
xor edi, dword [ebx*4 + 0x40af70]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x10], edi
mov edi, dword [ebp - 0xc]
shr edi, 0x18
mov edi, dword [edi*4 + 0x40a770]
xor dword [ebp - 0x10], edi
mov edi, dword [ebp - 0x10]
and ebx, eax
xor edi, dword [ebx*4 + 0x40b370]
and ecx, eax
xor edi, dword [esi + 8]
shr edx, 0x18
mov dword [ebp - 8], edi
movzx edi, byte [ebp + 0xd]
mov ebx, dword [edi*4 + 0x40af70]
xor ebx, dword [ecx*4 + 0x40ab70]
mov ecx, dword [ebp - 0xc]
xor ebx, dword [edx*4 + 0x40a770]
mov edx, dword [ebp - 4]
mov edi, dword [ebp - 8]
and ecx, eax
xor ebx, dword [ecx*4 + 0x40b370]
movzx ecx, byte [ebp - 7]
mov ecx, dword [ecx*4 + 0x40af70]
xor ebx, dword [esi + 0xc]
shr edx, 0x10
and edx, eax
xor ecx, dword [edx*4 + 0x40ab70]
mov edx, dword [ebp + 8]
shr edx, 0x18
xor ecx, dword [edx*4 + 0x40a770]
mov edx, ebx
and edx, eax
xor ecx, dword [edx*4 + 0x40b370]
shr edi, 0x10
xor ecx, dword [esi + 0x10]
movzx edx, bh
mov edx, dword [edx*4 + 0x40af70]
and edi, eax
xor edx, dword [edi*4 + 0x40ab70]
mov edi, dword [ebp - 4]
shr edi, 0x18
xor edx, dword [edi*4 + 0x40a770]
mov edi, dword [ebp + 8]
and edi, eax
xor edx, dword [edi*4 + 0x40b370]
movzx edi, byte [ebp + 9]
xor edx, dword [esi + 0x14]
add esi, 0x20
mov dword [ebp + 0xc], edx
mov edx, ebx
shr edx, 0x10
and edx, eax
mov edx, dword [edx*4 + 0x40ab70]
xor edx, dword [edi*4 + 0x40af70]
mov edi, dword [ebp - 8]
shr edi, 0x18
xor edx, dword [edi*4 + 0x40a770]
mov edi, dword [ebp - 4]
and edi, eax
xor edx, dword [edi*4 + 0x40b370]
mov edi, dword [ebp + 8]
xor edx, dword [esi - 8]
shr edi, 0x10
mov dword [ebp - 0xc], edx
movzx edx, byte [ebp - 3]
mov edx, dword [edx*4 + 0x40af70]
and edi, eax
xor edx, dword [edi*4 + 0x40ab70]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x40a770]
mov edi, edx
mov edx, dword [ebp - 8]
and edx, eax
xor edi, dword [edx*4 + 0x40b370]
xor edi, dword [esi - 4]
dec dword [ebp - 0x14]
mov edx, edi
jne 0x405d66
mov edi, dword [ebp + 0xc]
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x40b770]
movzx ebx, byte [ebp - 0xb]
mov ebx, dword [ebx*4 + 0x40b770]
and ebx, 0xff00
and edi, 0xff0000
xor edi, ebx
mov ebx, ecx
shr ebx, 0x18
mov ebx, dword [ebx*4 + 0x40b770]
and ebx, 0xff000000
xor edi, ebx
mov ebx, edx
and ebx, eax
movzx ebx, byte [ebx*4 + 0x40b770]
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 + 0x10]
mov dword [edi], ebx
mov edi, dword [ebp - 0xc]
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x40b770]
and edi, 0xff0000
movzx ebx, dh
mov ebx, dword [ebx*4 + 0x40b770]
and ebx, 0xff00
xor edi, ebx
mov ebx, dword [ebp + 0xc]
shr ebx, 0x18
mov ebx, dword [ebx*4 + 0x40b770]
and ebx, 0xff000000
xor edi, ebx
mov ebx, ecx
and ebx, eax
movzx ebx, byte [ebx*4 + 0x40b770]
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 + 0x10]
mov dword [edi + 4], ebx
mov edi, edx
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x40b770]
and edi, 0xff0000
movzx ebx, ch
mov ebx, dword [ebx*4 + 0x40b770]
and ebx, 0xff00
xor edi, ebx
mov ebx, dword [ebp - 0xc]
shr ebx, 0x18
mov ebx, dword [ebx*4 + 0x40b770]
and ebx, 0xff000000
xor edi, ebx
mov ebx, dword [ebp + 0xc]
and ebx, eax
movzx ebx, byte [ebx*4 + 0x40b770]
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 + 0x10]
mov dword [edi + 8], ebx
movzx ebx, byte [ebp + 0xd]
mov ebx, dword [ebx*4 + 0x40b770]
shr ecx, 0x10
and ecx, eax
mov ecx, dword [ecx*4 + 0x40b770]
shr edx, 0x18
mov edx, dword [edx*4 + 0x40b770]
and ecx, 0xff0000
and ebx, 0xff00
xor ecx, ebx
and edx, 0xff000000
xor ecx, edx
mov edx, dword [ebp - 0xc]
and edx, eax
movzx eax, byte [edx*4 + 0x40b770]
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