Function at 0x10080640
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
push esi
mov esi, dword [esp + 0x24]
add esi, esi
add esi, esi
add esi, esi
test esi, esi
jle 0x100809ab
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
add eax, 8
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], eax
sub eax, edx
mov dword [esp + 0x1c], eax
lea eax, [esi - 1]
push ebx
shr eax, 3
lea ecx, [edx + 4]
inc eax
push ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
push edi
mov eax, dword [ecx - 4]
mov edx, eax
ror edx, 8
and edx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or edx, eax
mov eax, dword [ecx]
mov ecx, eax
ror ecx, 8
and ecx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
mov dword [esp + 0x30], edx
or ecx, eax
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x18], ecx
call fcn.10081250
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x14], 4
mov eax, dword [edx - 8]
xor eax, edi
mov ecx, eax
mov esi, eax
shr ecx, 0x1b
mov ebp, eax
shr ebp, 0x13
and ebp, 0x3f
shl esi, 5
or ecx, esi
and ecx, 0x3f
mov esi, dword [ecx*4 + 0x100abcf8]
or esi, dword [ebp*4 + 0x100abef8]
mov ecx, eax
shr eax, 3
and eax, 0x3f
shr ecx, 0xb
and ecx, 0x3f
or esi, dword [ecx*4 + 0x100ac0f8]
mov ecx, dword [edx - 4]
or esi, dword [eax*4 + 0x100ac2f8]
xor ecx, edi
mov eax, ecx
and eax, 0x1f
add eax, eax
mov ebp, ecx
shr ebp, 0x1f
or eax, ebp
mov eax, dword [eax*4 + 0x100ac3f8]
mov ebp, ecx
shr ebp, 0x17
and ebp, 0x3f
or eax, dword [ebp*4 + 0x100abdf8]
mov ebp, ecx
shr ebp, 0xf
and ebp, 0x3f
or eax, dword [ebp*4 + 0x100abff8]
shr ecx, 7
and ecx, 0x3f
or eax, dword [ecx*4 + 0x100ac1f8]
mov ecx, dword [edx]
or eax, esi
xor eax, ebx
xor ecx, eax
mov esi, ecx
mov ebp, ecx
shl ebp, 5
shr esi, 0x1b
or esi, ebp
mov ebp, ecx
shr ebp, 0x13
and ebp, 0x3f
and esi, 0x3f
mov esi, dword [esi*4 + 0x100abcf8]
or esi, dword [ebp*4 + 0x100abef8]
mov ebp, ecx
shr ebp, 0xb
and ebp, 0x3f
or esi, dword [ebp*4 + 0x100ac0f8]
shr ecx, 3
and ecx, 0x3f
or esi, dword [ecx*4 + 0x100ac2f8]
mov ecx, dword [edx + 4]
xor ecx, eax
mov ebx, eax
mov eax, ecx
and eax, 0x1f
add eax, eax
mov ebp, ecx
shr ebp, 0x1f
or eax, ebp
mov eax, dword [eax*4 + 0x100ac3f8]
mov ebp, ecx
shr ebp, 0x17
and ebp, 0x3f
or eax, dword [ebp*4 + 0x100abdf8]
mov ebp, ecx
shr ebp, 0xf
and ebp, 0x3f
or eax, dword [ebp*4 + 0x100abff8]
shr ecx, 7
and ecx, 0x3f
or eax, dword [ecx*4 + 0x100ac1f8]
mov ecx, dword [edx + 8]
or eax, esi
xor eax, edi
xor ecx, eax
mov esi, ecx
shr esi, 0x1b
mov ebp, ecx
shl ebp, 5
or esi, ebp
mov ebp, ecx
shr ebp, 0x13
and ebp, 0x3f
and esi, 0x3f
mov esi, dword [esi*4 + 0x100abcf8]
or esi, dword [ebp*4 + 0x100abef8]
mov ebp, ecx
shr ebp, 0xb
and ebp, 0x3f
or esi, dword [ebp*4 + 0x100ac0f8]
shr ecx, 3
and ecx, 0x3f
or esi, dword [ecx*4 + 0x100ac2f8]
mov ecx, dword [edx + 0xc]
xor ecx, eax
mov edi, eax
mov eax, ecx
and eax, 0x1f
mov ebp, ecx
shr ebp, 0x1f
add eax, eax
or eax, ebp
mov eax, dword [eax*4 + 0x100ac3f8]
mov ebp, ecx
shr ebp, 0x17
and ebp, 0x3f
or eax, dword [ebp*4 + 0x100abdf8]
mov ebp, ecx
shr ebp, 0xf
and ebp, 0x3f
or eax, dword [ebp*4 + 0x100abff8]
shr ecx, 7
and ecx, 0x3f
or eax, dword [ecx*4 + 0x100ac1f8]
mov ecx, dword [edx + 0x10]
or eax, esi
xor eax, ebx
xor ecx, eax
mov esi, ecx
shr esi, 0x1b
mov ebx, ecx
shl ebx, 5
or esi, ebx
mov ebx, ecx
shr ebx, 0x13
and ebx, 0x3f
and esi, 0x3f
mov esi, dword [esi*4 + 0x100abcf8]
or esi, dword [ebx*4 + 0x100abef8]
mov ebx, ecx
shr ebx, 0xb
and ebx, 0x3f
or esi, dword [ebx*4 + 0x100ac0f8]
shr ecx, 3
and ecx, 0x3f
or esi, dword [ecx*4 + 0x100ac2f8]
mov ecx, dword [edx + 0x14]
xor ecx, eax
mov ebx, ecx
and ebx, 0x1f
add ebx, ebx
mov ebp, ecx
shr ebp, 0x1f
or ebx, ebp
mov ebx, dword [ebx*4 + 0x100ac3f8]
mov ebp, ecx
shr ebp, 0x17
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x100abdf8]
mov ebp, ecx
shr ebp, 0xf
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x100abff8]
shr ecx, 7
and ecx, 0x3f
or ebx, dword [ecx*4 + 0x100ac1f8]
add edx, 0x20
or ebx, esi
xor edi, ebx
mov esi, 1
sub dword [esp + 0x14], esi
mov ebx, eax
jne 0x100806e2
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x18], edi
call fcn.100812f0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
mov eax, ecx
ror eax, 8
and eax, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or eax, ecx
mov ecx, dword [esp + 0x10]
mov edi, ecx
ror edi, 8
and edi, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or edi, ecx
mov ecx, dword [esp + 0x18]
mov dword [edx], edi
mov edi, dword [esp + 0x28]
mov dword [edi + ecx], eax
add ecx, 8
add edx, 8
sub dword [esp + 0x20], esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
jne 0x10080688
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x1c
ret