Function at 0x10022c30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xc
call fcn.100ab600
push esi
mov eax, dword [ebp + 8]
sub eax, 1
shr eax, 0x1f
sub eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ecx + 4]
xor eax, dword [edx + 4]
and eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
xor edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 4]
xor edx, dword [ebp - 8]
mov eax, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
sub edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 9
ja case.default.0x10022c95
mov eax, dword [ebp - 0xc]
jmp dword [eax*4 + 0x10022f8c]
mov dword [ebp - 4], 0xa
jmp 0x10022cae
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0x14]
jge case.0x10022c95.9
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov ecx, dword [ecx + edx*4]
xor ecx, dword [eax + esi*4]
and ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + ecx*4]
xor edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov dword [ecx + eax*4], edx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
mov ecx, dword [edx + eax*4]
xor ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov edx, dword [ebp - 4]
mov dword [eax + edx*4], ecx
xor eax, eax
jne 0x10022cb6
jmp 0x10022ca5
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [edx + 0x24]
xor edx, dword [ecx + 0x24]
and edx, dword [ebp + 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
xor edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ecx + 0x24], edx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [eax + 0x24]
xor ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov dword [eax + 0x24], ecx
xor ecx, ecx
jne case.0x10022c95.9
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov eax, dword [eax + 0x20]
xor eax, dword [edx + 0x20]
and eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
xor eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [edx + 0x20], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
xor edx, dword [ebp - 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ecx + 0x20], edx
xor edx, edx
jne case.0x10022c95.8
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [ecx + 0x1c]
xor ecx, dword [eax + 0x1c]
and ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax + 0x1c]
xor ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov dword [eax + 0x1c], ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
xor eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov dword [edx + 0x1c], eax
xor eax, eax
jne case.0x10022c95.7
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [edx + 0x18]
xor edx, dword [ecx + 0x18]
and edx, dword [ebp + 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
xor edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ecx + 0x18], edx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [eax + 0x18]
xor ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov dword [eax + 0x18], ecx
xor ecx, ecx
jne case.0x10022c95.6
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov eax, dword [eax + 0x14]
xor eax, dword [edx + 0x14]
and eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
xor eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [edx + 0x14], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
xor edx, dword [ebp - 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ecx + 0x14], edx
xor edx, edx
jne case.0x10022c95.5
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [ecx + 0x10]
xor ecx, dword [eax + 0x10]
and ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax + 0x10]
xor ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
xor eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov dword [edx + 0x10], eax
xor eax, eax
jne case.0x10022c95.4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [edx + 0xc]
xor edx, dword [ecx + 0xc]
and edx, dword [ebp + 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
xor edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ecx + 0xc], edx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [eax + 0xc]
xor ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov dword [eax + 0xc], ecx
xor ecx, ecx
jne case.0x10022c95.3
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov eax, dword [eax + 8]
xor eax, dword [edx + 8]
and eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
xor eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [edx + 8], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
xor edx, dword [ebp - 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ecx + 8], edx
xor edx, edx
jne case.0x10022c95.2
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [ecx + 4]
xor ecx, dword [eax + 4]
and ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax + 4]
xor ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
xor eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov dword [edx + 4], eax
xor eax, eax
jne case.0x10022c95.1
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [edx]
xor edx, dword [ecx]
and edx, dword [ebp + 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
xor edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ecx], edx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [eax]
xor ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov dword [eax], ecx
xor ecx, ecx
jne case.0x10022c95.0
pop esi
mov esp, ebp
pop ebp
ret