Function at 0x40f7a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
movzx ebx, byte [edx + 3]
movzx ecx, byte [edx + 2]
mov eax, dword [eax + 4]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [edx + 1]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [edx]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [edx + 6]
xor ebx, dword [eax]
mov dword [ebp - 8], ebx
movzx ebx, byte [edx + 7]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [edx + 5]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [edx + 4]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [edx + 0xb]
shl ecx, 8
mov dword [ebp + 0x10], ecx
movzx ecx, byte [edx + 0xa]
or dword [ebp + 0x10], ecx
shl dword [ebp + 0x10], 8
movzx ecx, byte [edx + 9]
or dword [ebp + 0x10], ecx
movzx ecx, byte [edx + 8]
shl dword [ebp + 0x10], 8
or dword [ebp + 0x10], ecx
mov ecx, dword [ebp + 0x10]
xor ecx, dword [eax + 8]
mov dword [ebp + 0x10], ecx
movzx ecx, byte [edx + 0xf]
xor ebx, dword [eax + 4]
shl ecx, 8
mov dword [ebp - 4], ecx
movzx ecx, byte [edx + 0xe]
or dword [ebp - 4], ecx
movzx ecx, byte [edx + 0xd]
shl dword [ebp - 4], 8
or dword [ebp - 4], ecx
shl dword [ebp - 4], 8
movzx ecx, byte [edx + 0xc]
mov edx, dword [ebp - 4]
or edx, ecx
mov dword [ebp - 0xc], ebx
mov ecx, dword [ebp + 8]
xor edx, dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], edx
mov ecx, dword [ecx]
sar ecx, 1
dec ecx
cmp dword [ebp + 0xc], 0
jne 0x40fd05
mov dword [ebp - 0x14], ecx
test ecx, ecx
jle 0x40faba
lea esp, [esp]
shr edx, 8
mov ecx, dword [ebp + 0x10]
and edx, 0xff
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [edx*4 + 0xa3f590]
xor edx, dword [ecx*4 + 0xa3f990]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0xa3fd90]
mov ecx, dword [ebp - 8]
movzx ecx, cl
xor edx, dword [ecx*4 + 0xa3f190]
xor edx, dword [eax]
mov ecx, dword [ebp - 8]
mov dword [ebp + 8], edx
mov edx, dword [ebp - 4]
shr edx, 0x10
shr ecx, 8
and edx, 0xff
and ecx, 0xff
mov edx, dword [edx*4 + 0xa3f990]
xor edx, dword [ecx*4 + 0xa3f590]
mov ecx, dword [ebp + 0x10]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0xa3fd90]
movzx ecx, bl
xor edx, dword [ecx*4 + 0xa3f190]
xor edx, dword [eax + 4]
mov ecx, dword [ebp - 8]
mov dword [ebp + 0xc], edx
mov edx, ebx
shr ecx, 0x10
shr edx, 8
and ecx, 0xff
and edx, 0xff
shr ebx, 0x10
and ebx, 0xff
mov dword [ebp - 0xc], ebx
mov edi, dword [ebp - 0xc]
mov edx, dword [edx*4 + 0xa3f590]
xor edx, dword [ecx*4 + 0xa3f990]
mov ecx, dword [ebp - 4]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0xa3fd90]
mov ecx, dword [ebp + 0x10]
movzx ecx, cl
xor edx, dword [ecx*4 + 0xa3f190]
mov ecx, dword [ebp + 0x10]
xor edx, dword [eax + 8]
shr ecx, 8
and ecx, 0xff
mov dword [ebp - 0x10], edx
mov ebx, dword [ecx*4 + 0xa3f590]
mov ecx, dword [ebp - 8]
xor ebx, dword [edi*4 + 0xa3f990]
shr ecx, 0x18
xor ebx, dword [ecx*4 + 0xa3fd90]
mov ecx, dword [ebp - 4]
movzx ecx, cl
xor ebx, dword [ecx*4 + 0xa3f190]
xor ebx, dword [eax + 0xc]
mov ecx, dword [ebp - 0x10]
mov edx, ebx
shr edx, 8
and edx, 0xff
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [edx*4 + 0xa3f590]
xor edx, dword [ecx*4 + 0xa3f990]
mov ecx, dword [ebp + 0xc]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0xa3fd90]
mov ecx, dword [ebp + 8]
movzx ecx, cl
xor edx, dword [ecx*4 + 0xa3f190]
xor edx, dword [eax + 0x10]
mov dword [ebp - 8], edx
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov edi, dword [edx*4 + 0xa3f990]
mov ecx, dword [ebp + 8]
shr ecx, 8
and ecx, 0xff
mov edx, dword [ebp + 0xc]
xor edi, dword [ecx*4 + 0xa3f590]
mov ecx, dword [ebp - 0x10]
shr ecx, 0x18
xor edi, dword [ecx*4 + 0xa3fd90]
movzx ecx, dl
shr edx, 8
and edx, 0xff
xor edi, dword [ecx*4 + 0xa3f190]
mov ecx, dword [ebp + 8]
mov edx, dword [edx*4 + 0xa3f590]
shr ecx, 0x10
and ecx, 0xff
xor edi, dword [eax + 0x14]
mov dword [ebp - 0xc], edi
xor edx, dword [ecx*4 + 0xa3f990]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0xa3fd90]
mov dword [ebp + 0x10], edx
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp + 0x10]
movzx ecx, dl
shr edx, 8
and edx, 0xff
xor esi, dword [ecx*4 + 0xa3f190]
mov ecx, esi
mov dword [ebp + 0x10], esi
xor ecx, dword [eax + 0x18]
mov edx, dword [edx*4 + 0xa3f590]
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp + 0xc]
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0xa3f990]
mov ecx, dword [ebp + 8]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0xa3fd90]
movzx ecx, bl
mov ebx, edi
xor edx, dword [ecx*4 + 0xa3f190]
mov ecx, dword [ebp - 0x14]
xor edx, dword [eax + 0x1c]
dec ecx
add eax, 0x20
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], ecx
test ecx, ecx
jg 0x40f880
mov ecx, dword [ebp + 0x10]
shr ecx, 0x10
and ecx, 0xff
shr edx, 8
and edx, 0xff
mov edi, dword [ebp - 0xc]
shr edi, 0x10
and edi, 0xff
mov edx, dword [edx*4 + 0xa3f590]
xor edx, dword [ecx*4 + 0xa3f990]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0xa3fd90]
mov ecx, dword [ebp - 8]
movzx ecx, cl
xor edx, dword [ecx*4 + 0xa3f190]
xor edx, dword [eax]
mov ecx, dword [ebp - 8]
shr ecx, 8
and ecx, 0xff
mov dword [ebp + 0xc], edx
mov edx, dword [ebp - 4]
shr edx, 0x10
and edx, 0xff
mov edx, dword [edx*4 + 0xa3f990]
xor edx, dword [ecx*4 + 0xa3f590]
mov ecx, dword [ebp + 0x10]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0xa3fd90]
movzx ecx, bl
xor edx, dword [ecx*4 + 0xa3f190]
xor edx, dword [eax + 4]
mov ecx, dword [ebp - 8]
shr ecx, 0x10
and ecx, 0xff
mov dword [ebp + 8], edx
mov edx, ebx
shr edx, 8
and edx, 0xff
mov ebx, dword [edx*4 + 0xa3f590]
xor ebx, dword [ecx*4 + 0xa3f990]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
shr ecx, 0x18
xor ebx, dword [ecx*4 + 0xa3fd90]
movzx ecx, dl
shr edx, 8
and edx, 0xff
xor ebx, dword [ecx*4 + 0xa3f190]
mov ecx, dword [ebp - 8]
mov edx, dword [edx*4 + 0xa3f590]
xor edx, dword [edi*4 + 0xa3f990]
xor ebx, dword [eax + 8]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0xa3fd90]
mov ecx, dword [ebp - 4]
movzx ecx, cl
xor edx, dword [ecx*4 + 0xa3f190]
mov ecx, ebx
xor edx, dword [eax + 0xc]
shr ecx, 0x10
and ecx, 0xff
movzx esi, byte [ecx + 0xa3f090]
mov ecx, dword [ebp + 8]
shr ecx, 0x18
movzx ecx, byte [ecx + 0xa3f090]
shl ecx, 8
xor esi, ecx
mov ecx, edx
shr ecx, 8
and ecx, 0xff
shl esi, 8
movzx ecx, byte [ecx + 0xa3f090]
xor esi, ecx
mov ecx, dword [ebp + 0xc]
movzx ecx, cl
shl esi, 8
movzx ecx, byte [ecx + 0xa3f090]
xor esi, ecx
xor esi, dword [eax + 0x10]
mov dword [ebp + 0x10], esi
mov ecx, edx
shr ecx, 0x10
and ecx, 0xff
movzx esi, byte [ecx + 0xa3f090]
mov ecx, ebx
shr ecx, 0x18
movzx ecx, byte [ecx + 0xa3f090]
shl ecx, 8
xor esi, ecx
mov ecx, dword [ebp + 0xc]
shr ecx, 8
and ecx, 0xff
shl esi, 8
movzx ecx, byte [ecx + 0xa3f090]
xor esi, ecx
mov ecx, dword [ebp + 8]
movzx ecx, cl
shl esi, 8
movzx ecx, byte [ecx + 0xa3f090]
xor esi, ecx
mov ecx, dword [ebp + 0xc]
xor esi, dword [eax + 0x14]
shr ecx, 0x10
and ecx, 0xff
mov dword [ebp - 0x14], esi
movzx esi, byte [ecx + 0xa3f090]
mov ecx, edx
shr ecx, 0x18
movzx ecx, byte [ecx + 0xa3f090]
shl ecx, 8
xor esi, ecx
mov ecx, dword [ebp + 8]
shr ecx, 8
and ecx, 0xff
shl esi, 8
movzx ecx, byte [ecx + 0xa3f090]
xor esi, ecx
movzx ecx, bl
shl esi, 8
shr ebx, 8
and ebx, 0xff
movzx ecx, byte [ecx + 0xa3f090]
xor esi, ecx
mov ecx, dword [ebp + 8]
xor esi, dword [eax + 0x18]
shr ecx, 0x10
and ecx, 0xff
mov dword [ebp - 0x10], esi
movzx esi, byte [ecx + 0xa3f090]
mov ecx, dword [ebp + 0xc]
shr ecx, 0x18
movzx ecx, byte [ecx + 0xa3f090]
shl ecx, 8
xor esi, ecx
movzx ecx, byte [ebx + 0xa3f090]
shl esi, 8
mov ebx, esi
mov dword [ebp + 8], esi
xor ebx, ecx
movzx ecx, dl
movzx ecx, byte [ecx + 0xa3f090]
jmp 0x4101aa
mov dword [ebp - 0x10], ecx
test ecx, ecx
jle 0x40ff5e
mov edx, dword [ebp + 0x10]
mov ecx, ebx
shr edx, 0x10
shr ecx, 8
and edx, 0xff
and ecx, 0xff
mov edx, dword [edx*4 + 0xa3e890]
xor edx, dword [ecx*4 + 0xa3e490]
mov ecx, dword [ebp - 4]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0xa3ec90]
mov ecx, dword [ebp - 8]
movzx ecx, cl
xor edx, dword [ecx*4 + 0xa3e090]
xor edx, dword [eax]
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 8], edx
mov edx, dword [ebp - 4]
shr edx, 0x10
shr ecx, 8
and edx, 0xff
and ecx, 0xff
mov edx, dword [edx*4 + 0xa3e890]
xor edx, dword [ecx*4 + 0xa3e490]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0xa3ec90]
movzx ecx, bl
xor edx, dword [ecx*4 + 0xa3e090]
xor edx, dword [eax + 4]
mov ecx, dword [ebp - 8]
mov dword [ebp + 0xc], edx
mov edx, dword [ebp - 4]
shr ecx, 0x10
shr edx, 8
and ecx, 0xff
and edx, 0xff
mov edx, dword [edx*4 + 0xa3e490]
xor edx, dword [ecx*4 + 0xa3e890]
mov ecx, ebx
shr ecx, 0x18
shr ebx, 0x10
and ebx, 0xff
xor edx, dword [ecx*4 + 0xa3ec90]
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebx*4 + 0xa3e890]
movzx ecx, cl
xor edx, dword [ecx*4 + 0xa3e090]
mov ecx, dword [ebp - 8]
xor edx, dword [eax + 8]
shr ecx, 8
and ecx, 0xff
mov dword [ebp - 0x14], edx
shr edx, 0x10
and edx, 0xff
xor ebx, dword [ecx*4 + 0xa3e490]
mov ecx, dword [ebp + 0x10]
mov edx, dword [edx*4 + 0xa3e890]
shr ecx, 0x18
xor ebx, dword [ecx*4 + 0xa3ec90]
mov ecx, dword [ebp - 4]
movzx ecx, cl
xor ebx, dword [ecx*4 + 0xa3e090]
mov ecx, dword [ebp + 0xc]
xor ebx, dword [eax + 0xc]
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0xa3e490]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0xa3ec90]
mov ecx, dword [ebp + 8]
movzx ecx, cl
xor edx, dword [ecx*4 + 0xa3e090]
xor edx, dword [eax + 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 8], edx
mov edx, ebx
shr edx, 0x10
and edx, 0xff
shr ecx, 8
mov edi, dword [edx*4 + 0xa3e890]
and ecx, 0xff
mov edx, ebx
shr edx, 8
and edx, 0xff
xor edi, dword [ecx*4 + 0xa3e490]
mov ecx, dword [ebp + 8]
shr ecx, 0x18
mov edx, dword [edx*4 + 0xa3e490]
xor edi, dword [ecx*4 + 0xa3ec90]
mov ecx, dword [ebp + 0xc]
movzx ecx, cl
xor edi, dword [ecx*4 + 0xa3e090]
mov ecx, dword [ebp + 8]
shr ecx, 0x10
and ecx, 0xff
xor edi, dword [eax + 0x14]
mov dword [ebp - 0xc], edi
xor edx, dword [ecx*4 + 0xa3e890]
mov ecx, dword [ebp + 0xc]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0xa3ec90]
mov dword [ebp + 0x10], edx
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp + 0x10]
movzx ecx, dl
shr edx, 0x18
xor esi, dword [ecx*4 + 0xa3e090]
mov ecx, esi
mov dword [ebp + 0x10], esi
xor ecx, dword [eax + 0x18]
mov esi, dword [ebp + 8]
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp + 0xc]
shr ecx, 0x10
and ecx, 0xff
shr esi, 8
and esi, 0xff
mov dword [ebp + 8], esi
mov ecx, dword [ecx*4 + 0xa3e890]
mov dword [ebp - 4], ecx
mov ecx, esi
mov edi, dword [ebp - 4]
xor edi, dword [ecx*4 + 0xa3e490]
mov ecx, edi
mov dword [ebp - 4], edi
xor ecx, dword [edx*4 + 0xa3ec90]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
movzx ecx, bl
mov ebx, dword [ebp - 0xc]
xor edx, dword [ecx*4 + 0xa3e090]
mov ecx, dword [ebp - 0x10]
xor edx, dword [eax + 0x1c]
dec ecx
add eax, 0x20
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], ecx
test ecx, ecx
jg 0x40fd10
mov edx, dword [ebp + 0x10]
mov ecx, ebx
shr ecx, 8
and ecx, 0xff
shr edx, 0x10
and edx, 0xff
mov edi, dword [ebp - 0xc]
mov edx, dword [edx*4 + 0xa3e890]
xor edx, dword [ecx*4 + 0xa3e490]
mov ecx, dword [ebp - 4]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0xa3ec90]
mov ecx, dword [ebp - 8]
movzx ecx, cl
xor edx, dword [ecx*4 + 0xa3e090]
xor edx, dword [eax]
mov ecx, dword [ebp + 0x10]
shr ecx, 8
and ecx, 0xff
mov dword [ebp + 0xc], edx
mov edx, dword [ebp - 4]
shr edx, 0x10
and edx, 0xff
mov edx, dword [edx*4 + 0xa3e890]
xor edx, dword [ecx*4 + 0xa3e490]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0xa3ec90]
movzx ecx, bl
xor edx, dword [ecx*4 + 0xa3e090]
xor edx, dword [eax + 4]
mov ecx, dword [ebp - 8]
shr ecx, 0x10
and ecx, 0xff
mov dword [ebp + 8], edx
mov edx, dword [ebp - 4]
shr edx, 8
and edx, 0xff
mov ebx, dword [edx*4 + 0xa3e490]
xor ebx, dword [ecx*4 + 0xa3e890]
mov ecx, edi
shr ecx, 0x18
shr edi, 0x10
and edi, 0xff
xor ebx, dword [ecx*4 + 0xa3ec90]
mov ecx, dword [ebp + 0x10]
movzx ecx, cl
mov edx, dword [edi*4 + 0xa3e890]
xor ebx, dword [ecx*4 + 0xa3e090]
mov ecx, dword [ebp - 8]
shr ecx, 8
and ecx, 0xff
xor ebx, dword [eax + 8]
xor edx, dword [ecx*4 + 0xa3e490]
mov ecx, dword [ebp + 0x10]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0xa3ec90]
mov ecx, dword [ebp - 4]
movzx ecx, cl
xor edx, dword [ecx*4 + 0xa3e090]
mov ecx, ebx
xor edx, dword [eax + 0xc]
shr ecx, 0x10
and ecx, 0xff
movzx esi, byte [ecx + 0xa3df90]
mov ecx, edx
shr ecx, 0x18
movzx ecx, byte [ecx + 0xa3df90]
shl ecx, 8
xor esi, ecx
mov ecx, dword [ebp + 8]
shr ecx, 8
and ecx, 0xff
shl esi, 8
movzx ecx, byte [ecx + 0xa3df90]
xor esi, ecx
mov ecx, dword [ebp + 0xc]
movzx ecx, cl
shl esi, 8
movzx ecx, byte [ecx + 0xa3df90]
xor esi, ecx
xor esi, dword [eax + 0x10]
mov ecx, edx
shr ecx, 0x10
and ecx, 0xff
mov dword [ebp + 0x10], esi
movzx esi, byte [ecx + 0xa3df90]
mov ecx, dword [ebp + 0xc]
shr ecx, 0x18
movzx ecx, byte [ecx + 0xa3df90]
shl ecx, 8
xor esi, ecx
mov ecx, ebx
shr ecx, 8
and ecx, 0xff
shl esi, 8
movzx ecx, byte [ecx + 0xa3df90]
xor esi, ecx
mov ecx, dword [ebp + 8]
movzx ecx, cl
shl esi, 8
movzx ecx, byte [ecx + 0xa3df90]
xor esi, ecx
mov ecx, dword [ebp + 0xc]
xor esi, dword [eax + 0x14]
shr ecx, 0x10
and ecx, 0xff
mov dword [ebp - 0x14], esi
movzx esi, byte [ecx + 0xa3df90]
mov ecx, dword [ebp + 8]
shr ecx, 0x18
movzx ecx, byte [ecx + 0xa3df90]
shl ecx, 8
xor esi, ecx
mov ecx, edx
shr ecx, 8
and ecx, 0xff
shl esi, 8
movzx ecx, byte [ecx + 0xa3df90]
xor esi, ecx
movzx ecx, bl
shl esi, 8
shr ebx, 0x18
movzx ecx, byte [ecx + 0xa3df90]
xor esi, ecx
mov ecx, dword [ebp + 8]
xor esi, dword [eax + 0x18]
shr ecx, 0x10
and ecx, 0xff
mov dword [ebp - 0x10], esi
movzx esi, byte [ecx + 0xa3df90]
movzx ecx, byte [ebx + 0xa3df90]
mov ebx, esi
shl ecx, 8
xor ebx, ecx
mov dword [ebp + 8], esi
mov ecx, dword [ebp + 0xc]
shr ecx, 8
and ecx, 0xff
shl ebx, 8
movzx ecx, byte [ecx + 0xa3df90]
xor ebx, ecx
movzx ecx, dl
movzx ecx, byte [ecx + 0xa3df90]
mov edx, dword [ebp + 0x10]
shl ebx, 8
xor ebx, ecx
mov ecx, dword [ebp + 0x14]
xor ebx, dword [eax + 0x1c]
mov eax, edx
shr eax, 8
pop edi
mov byte [ecx + 1], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 2], al
mov byte [ecx], dl
shr edx, 0x18
mov byte [ecx + 3], dl
mov edx, dword [ebp - 0x14]
mov eax, edx
shr eax, 8
mov byte [ecx + 5], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 6], al
mov byte [ecx + 4], dl
shr edx, 0x18
mov byte [ecx + 7], dl
mov edx, dword [ebp - 0x10]
mov eax, edx
shr eax, 8
mov byte [ecx + 9], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 0xa], al
mov eax, ebx
shr eax, 8
mov byte [ecx + 0xd], al
mov eax, ebx
mov byte [ecx + 8], dl
shr edx, 0x18
mov byte [ecx + 0xc], bl
shr eax, 0x10
shr ebx, 0x18
pop esi
mov byte [ecx + 0xf], bl
mov byte [ecx + 0xb], dl
mov byte [ecx + 0xe], al
pop ebx
mov esp, ebp
pop ebp
ret