Function at 0x1008ea92
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x38
shl eax, 3
push ebx
push ebp
push esi
mov esi, dword [esp + 0x48]
push edi
test esi, esi
je 0x1008ee40
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x1008ee40
mov bl, byte [esi]
cmp bl, 3
je 0x1008eac8
cmp byte [ecx], 0
je 0x1008ee40
cdq
and edx, 0x7f
lea edi, [edx + eax]
movzx eax, bl
sar edi, 7
mov dword [esp + 0x20], edi
sub eax, 1
je 0x1008ee0e
sub eax, 1
je 0x1008ed68
sub eax, 1
jne 0x1008ee40
mov eax, dword [esi + 1]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 5]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 9]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0xd]
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], edi
test edi, edi
jle 0x1008ee39
mov al, byte [esp + 0x37]
lea edi, [ecx + 0x30]
mov byte [esp + 0x1f], al
mov al, byte [esp + 0x36]
mov byte [esp + 0x1e], al
mov al, byte [esp + 0x35]
mov byte [esp + 0x1d], al
mov al, byte [esp + 0x34]
mov byte [esp + 0x1c], al
mov al, byte [esp + 0x33]
mov byte [esp + 0x1b], al
mov al, byte [esp + 0x32]
mov byte [esp + 0x1a], al
mov al, byte [esp + 0x31]
mov byte [esp + 0x19], al
mov al, byte [esp + 0x30]
mov byte [esp + 0x18], al
mov al, byte [esp + 0x2f]
mov byte [esp + 0x17], al
mov al, byte [esp + 0x2e]
mov byte [esp + 0x16], al
mov al, byte [esp + 0x2d]
mov byte [esp + 0x15], al
mov al, byte [esp + 0x2c]
mov byte [esp + 0x14], al
mov al, byte [esp + 0x2b]
mov byte [esp + 0x13], al
mov al, byte [esp + 0x2a]
mov byte [esp + 0x12], al
mov al, byte [esp + 0x29]
mov byte [esp + 0x4c], al
mov al, byte [esp + 0x28]
mov byte [esp + 0x58], al
xor ebx, ebx
mov eax, dword [esp + 0x28]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x38]
push edi
push eax
push eax
call fcn.1008da74
mov dl, byte [esp + 0x58]
add esp, 0xc
mov cl, byte [esp + 0x58]
mov al, dl
shr al, 7
add cl, cl
or cl, al
add dl, dl
mov byte [esp + 0x58], cl
mov byte [esp + 0x28], cl
mov cl, byte [esp + 0x12]
mov al, cl
add cl, cl
shr al, 7
or dl, al
mov byte [esp + 0x4c], dl
mov byte [esp + 0x29], dl
mov dl, byte [esp + 0x13]
mov al, dl
add dl, dl
shr al, 7
or cl, al
mov byte [esp + 0x12], cl
mov byte [esp + 0x2a], cl
mov cl, byte [esp + 0x14]
mov al, cl
add cl, cl
shr al, 7
or dl, al
mov byte [esp + 0x13], dl
mov byte [esp + 0x2b], dl
mov dl, byte [esp + 0x15]
mov al, dl
add dl, dl
shr al, 7
or cl, al
mov byte [esp + 0x14], cl
mov byte [esp + 0x2c], cl
mov cl, byte [esp + 0x16]
mov al, cl
add cl, cl
shr al, 7
or dl, al
mov byte [esp + 0x15], dl
mov byte [esp + 0x2d], dl
mov dl, byte [esp + 0x17]
mov al, dl
add dl, dl
shr al, 7
or cl, al
mov byte [esp + 0x16], cl
mov byte [esp + 0x2e], cl
mov cl, byte [esp + 0x18]
mov al, cl
add cl, cl
shr al, 7
or dl, al
mov byte [esp + 0x17], dl
mov byte [esp + 0x2f], dl
mov dl, byte [esp + 0x19]
mov al, dl
shr al, 7
or cl, al
mov byte [esp + 0x18], cl
mov byte [esp + 0x30], cl
mov cl, byte [esp + 0x1a]
mov al, cl
shr al, 7
mov dh, byte [esp + 0x1d]
add dl, dl
or dl, al
mov ch, byte [esp + 0x1e]
mov ah, byte [esp + 0x1f]
add cl, cl
mov ebp, dword [esp + 0x54]
mov esi, ebx
mov byte [esp + 0x19], dl
mov byte [esp + 0x31], dl
mov dl, byte [esp + 0x1b]
mov al, dl
shr esi, 3
shr al, 7
add dl, dl
or cl, al
mov byte [esp + 0x1a], cl
mov byte [esp + 0x32], cl
mov cl, byte [esp + 0x1c]
mov al, cl
add cl, cl
shr al, 7
or dl, al
mov al, dh
shr al, 7
add dh, dh
or cl, al
mov byte [esp + 0x1b], dl
mov al, ch
mov byte [esp + 0x33], dl
shr al, 7
add ch, ch
or dh, al
mov byte [esp + 0x1c], cl
mov al, ah
mov byte [esp + 0x34], cl
shr al, 7
mov dl, bl
or ch, al
mov byte [esp + 0x1d], dh
mov al, byte [esi + ebp]
and dl, 7
mov ebp, dword [esp + 0x5c]
mov cl, 7
sub cl, dl
mov byte [esp + 0x35], dh
shr al, cl
add ah, ah
and al, 1
mov byte [esp + 0x1e], ch
or ah, al
mov byte [esp + 0x36], ch
mov al, byte [esp + 0x38]
mov cl, dl
and al, 0x80
mov byte [esp + 0x1f], ah
shr al, cl
xor byte [esi + ebp], al
inc ebx
mov byte [esp + 0x37], ah
cmp ebx, 0x80
jl 0x1008eba1
mov ebx, dword [esp + 0x24]
dec ebx
mov dword [esp + 0x24], ebx
test ebx, ebx
jg 0x1008eb9f
jmp 0x1008ee35
mov ebx, dword [esp + 0x54]
lea eax, [ecx + 0x30]
push eax
mov dword [esp + 0x50], eax
lea eax, [esp + 0x3c]
push eax
push ebx
call fcn.1008e15a
mov eax, dword [esi + 1]
add esp, 0xc
xor eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x5c]
mov dword [ecx], eax
mov eax, dword [esi + 5]
xor eax, dword [esp + 0x3c]
mov dword [ecx + 4], eax
mov eax, dword [esi + 9]
xor eax, dword [esp + 0x40]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0xd]
xor eax, dword [esp + 0x44]
mov dword [ecx + 0xc], eax
lea eax, [edi - 1]
test eax, eax
jle 0x1008ee39
lea ebp, [ebx - 0xc]
mov edi, eax
sub ebx, ecx
lea esi, [ecx + 0x14]
sub ebx, 0x14
push dword [esp + 0x4c]
lea eax, [esp + 0x3c]
push eax
lea eax, [ebx + esi]
push eax
call fcn.1008e15a
mov eax, dword [ebp - 4]
add esp, 0xc
xor eax, dword [esp + 0x38]
mov dword [esi - 4], eax
mov eax, dword [ebp]
lea ebp, [ebp + 0x10]
xor eax, dword [esp + 0x3c]
mov dword [esi], eax
lea esi, [esi + 0x10]
mov eax, dword [ebp - 0xc]
xor eax, dword [esp + 0x40]
mov dword [esi - 0xc], eax
mov eax, dword [ebp - 8]
xor eax, dword [esp + 0x44]
dec edi
mov dword [esi - 8], eax
test edi, edi
jg 0x1008edc5
jmp 0x1008ee35
mov esi, edi
test edi, edi
jle 0x1008ee39
mov ebx, dword [esp + 0x5c]
lea edi, [ecx + 0x30]
mov ebp, dword [esp + 0x54]
push edi
push ebx
push ebp
call fcn.1008e15a
add esp, 0xc
add ebp, 0x10
add ebx, 0x10
dec esi
test esi, esi
jg 0x1008ee1f
mov edi, dword [esp + 0x20]
shl edi, 7
mov eax, edi
jmp 0x1008ee43
push 0xfffffffffffffffb
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret