Function at 0x822480
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
mov eax, dword [ebp + 0x48]
lea esi, [ebp + 0x28]
mov edx, dword [ebp + 4]
add eax, 0x28
mov ecx, dword [ebp]
add eax, ebp
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], eax
test edx, edx
jne 0x8224c4
cmp ecx, 0x20
jae 0x8224c4
mov ebx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x1c]
add ebx, 0x165667c5
adc edi, 0x27d4eb2f
jmp 0x82259d
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x20]
mov ebp, dword [ebp + 0x24]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x10], ebp
mov ebp, ecx
mov eax, dword [ecx + 8]
mov ecx, dword [ebp + 0xc]
shld eax, ecx, 1
mov ecx, ebp
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp + 8]
mov ebp, dword [esp + 0x10]
shld eax, ecx, 1
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov eax, edi
shld eax, ebx, 7
shld ecx, ebp, 0x12
mov dword [esp + 0x18], eax
mov eax, ebp
mov ebp, dword [esp + 0x30]
shld ebx, edi, 7
mov edi, esi
shld edi, edx, 0xc
shld edx, esi, 0xc
mov esi, dword [ebp + 0x20]
mov ebp, dword [esp + 0x10]
shld eax, esi, 0x12
mov esi, dword [esp + 0x30]
add ecx, edi
push ebp
adc eax, edx
add ecx, dword [esp + 0x1c]
mov ebp, dword [esi + 0x20]
adc eax, ebx
add ecx, dword [esp + 0x20]
push ebp
push dword [esi + 0x1c]
mov ebp, dword [esi + 0xc]
push dword [esi + 0x18]
adc eax, dword [esp + 0x30]
push dword [esi + 0x14]
push dword [esi + 0x10]
push ebp
mov ebp, esi
push dword [ebp + 8]
push eax
push ecx
call fcn.00822710
add esp, 0x10
push edx
push eax
call fcn.00822710
add esp, 0x10
push edx
push eax
call fcn.00822710
add esp, 0x10
push edx
push eax
call fcn.00822710
mov esi, dword [esp + 0x34]
mov edi, edx
mov ecx, dword [ebp]
add esp, 0x10
mov edx, dword [ebp + 4]
mov ebx, eax
add ebx, ecx
lea eax, [ebp + 0x30]
mov ebp, dword [esp + 0x28]
adc edi, edx
mov dword [esp + 0x10], eax
cmp eax, ebp
ja 0x822622
push 0xc2b2ae3d
push 0x27d4eb4f
push dword [esi + 4]
push dword [esi]
call fcn.00822ba0
mov ecx, eax
push 0x9e3779b1
shld ecx, edx, 0x1f
shld edx, eax, 0x1f
push 0x85ebca87
push edx
push ecx
call fcn.00822ba0
mov ecx, eax
xor edx, edi
xor ecx, ebx
mov eax, ecx
push 0x9e3779b1
shld eax, edx, 0x1b
shld edx, ecx, 0x1b
push 0x85ebca87
push edx
push eax
call fcn.00822ba0
mov ebx, eax
mov edi, edx
mov eax, dword [esp + 0x10]
add ebx, 0xc2b2ae63
adc edi, 0x85ebca77
add eax, 8
add esi, 8
mov dword [esp + 0x10], eax
cmp eax, ebp
jbe 0x8225b0
lea eax, [esi + 4]
mov dword [esp + 0x28], eax
cmp eax, ebp
ja 0x822674
mov ecx, dword [esi]
mov eax, 0x9e3779b1
mul ecx
push 0xc2b2ae3d
mov esi, eax
mov eax, 0x85ebca87
mul ecx
push 0x27d4eb4f
add esi, edx
xor eax, ebx
xor esi, edi
mov ecx, eax
shld ecx, esi, 0x17
shld esi, eax, 0x17
push esi
push ecx
call fcn.00822ba0
mov esi, dword [esp + 0x28]
mov ebx, eax
add ebx, 0x9e3779f9
mov edi, edx
adc edi, 0x165667b1
cmp esi, ebp
jae 0x8226bf
nop dword [eax + eax]
movzx eax, byte [esi]
push 0x27d4eb2f
cdq
push 0x165667c5
push edx
push eax
call fcn.00822ba0
mov ecx, eax
xor edx, edi
xor ecx, ebx
mov eax, ecx
push 0x9e3779b1
shld eax, edx, 0xb
shld edx, ecx, 0xb
push 0x85ebca87
push edx
push eax
call fcn.00822ba0
inc esi
mov ebx, eax
mov edi, edx
cmp esi, ebp
jb 0x822680
push 0xc2b2ae3d
xor eax, eax
mov ecx, edi
push 0x27d4eb4f
shr ecx, 1
xor eax, edi
xor ecx, ebx
push eax
push ecx
call fcn.00822ba0
mov esi, eax
mov ecx, edx
shrd esi, ecx, 0x1d
push 0x165667b1
shr ecx, 0x1d
xor esi, eax
push 0x9e3779f9
xor ecx, edx
push ecx
push esi
call fcn.00822ba0
mov ecx, edx
xor esi, esi
pop edi
xor eax, ecx
xor edx, esi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret