Function at 0x10084e50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x1029c850]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov edx, dword [ecx + 4]
xor esi, esi
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x4c], edx
push edi
test edx, edx
jle 0x10084eb6
mov edi, dword [ebp - 0x4c]
lea edx, [eax + 2]
lea ebx, [ecx + 0x3c]
movzx ecx, byte [edx + 1]
lea ebx, [ebx + 4]
movzx eax, byte [edx]
lea edx, [edx + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 6]
shl ecx, 8
or ecx, eax
xor ecx, dword [ebx - 4]
mov dword [ebp + esi*4 - 0x24], ecx
inc esi
cmp esi, edi
jl 0x10084e81
mov ecx, dword [ebp + 8]
mov edx, edi
mov ebx, dword [ecx + 8]
lea eax, [ebp - 0x44]
mov dword [ebp - 0x50], edx
lea esi, [ebp - 0x24]
mov dword [ebp - 0x5c], eax
cmp ebx, 1
jle 0x10084f82
dec ebx
mov dword [ebp - 0x48], ebx
test edx, edx
jle 0x10084f6c
mov edx, dword [ebp - 0x50]
lea edi, [ecx + 0xc]
mov ebx, eax
lea ecx, [ecx + edx*4]
mov edx, dword [ebp - 0x4c]
add ecx, 0x3c
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x58], ecx
mov ecx, esi
sub ecx, eax
add dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x54], ecx
mov edi, edi
movzx ecx, byte [edi]
lea eax, [eax + 4]
lea ebx, [ebx + 4]
lea edi, [edi + 3]
mov ecx, dword [esi + ecx*4]
shr ecx, 8
movzx ecx, cl
mov edx, dword [ecx*4 + 0x102a9940]
movzx ecx, byte [edi - 2]
rol edx, 8
movzx ecx, byte [esi + ecx*4 + 2]
mov ecx, dword [ecx*4 + 0x102a9940]
rol ecx, 0x10
xor edx, ecx
movzx ecx, byte [edi - 1]
movzx ecx, byte [esi + ecx*4 + 3]
mov ecx, dword [ecx*4 + 0x102a9940]
ror ecx, 8
xor edx, ecx
mov ecx, dword [ebp - 0x54]
movzx ecx, byte [ecx + ebx - 4]
xor edx, dword [ecx*4 + 0x102a9940]
xor edx, dword [eax - 4]
dec dword [ebp - 0x60]
mov dword [ebx - 4], edx
jne 0x10084f00
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x48]
mov ecx, esi
dec ebx
mov esi, eax
mov dword [ebp - 0x48], ebx
mov eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
jne 0x10084ed2
test edx, edx
jle 0x1008501b
mov edx, dword [ebp - 0x50]
lea edi, [ecx + 0xc]
add edx, 0xf
mov ebx, eax
lea edx, [ecx + edx*4]
mov dword [ebp - 0x54], edx
mov edx, esi
sub edx, eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], edx
mov edx, dword [ecx + 4]
mov dword [ebp - 0x48], edx
jmp 0x10084fb0
movzx ecx, byte [edi]
lea eax, [eax + 4]
lea ebx, [ebx + 4]
lea edi, [edi + 3]
mov ecx, dword [esi + ecx*4]
shr ecx, 8
movzx ecx, cl
movzx edx, byte [ecx + 0x102a95c0]
movzx ecx, byte [edi - 2]
rol edx, 8
movzx ecx, byte [esi + ecx*4 + 2]
movzx ecx, byte [ecx + 0x102a95c0]
rol ecx, 0x10
xor edx, ecx
movzx ecx, byte [edi - 1]
movzx ecx, byte [esi + ecx*4 + 3]
movzx ecx, byte [ecx + 0x102a95c0]
ror ecx, 8
xor edx, ecx
mov ecx, dword [ebp - 0x58]
movzx ecx, byte [ecx + ebx - 4]
movzx ecx, byte [ecx + 0x102a95c0]
xor edx, ecx
xor edx, dword [eax - 4]
dec dword [ebp - 0x48]
mov dword [ebx - 4], edx
jne 0x10084fb0
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x4c]
xor ebx, ebx
test edx, edx
jle 0x10085069
mov edi, dword [ebp - 0x64]
add edi, 2
sub esi, eax
lea esp, [esp]
mov edx, dword [eax]
lea eax, [eax + 4]
mov ecx, edx
mov byte [edi - 2], dl
shr ecx, 8
lea edi, [edi + 4]
mov byte [edi - 5], cl
inc ebx
mov ecx, edx
mov dword [eax - 4], 0
shr ecx, 0x10
mov byte [edi - 4], cl
mov ecx, dword [ebp + 8]
shr edx, 0x18
mov byte [edi - 3], dl
mov dword [esi + eax - 4], 0
cmp ebx, dword [ecx + 4]
jl 0x10085030
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100899d2
mov esp, ebp
pop ebp
ret