Function at 0x13a8db2
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov ebp, edx
push ecx
call fcn.013a2fa2
add esp, 4
mov esi, eax
lea ecx, [ebp + 4]
mov dword [esp], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], ebp
mov edi, esi
mov dword [esp + 0x10], ecx
jmp 0x13a8e7a
mov al, byte [edi]
test al, al
sete cl
cmp al, 0x2c
setne dl
inc edi
xor dl, cl
jne 0x13a8de7
lea ecx, [edi - 1]
test al, al
je 0x13a8e04
mov byte [ecx], 0
jmp 0x13a8e06
mov edi, ecx
cmp dword [esp + 0x2c], 0
jle 0x13a8e7a
mov dword [esp + 4], esi
mov esi, dword [esp + 0x10]
xor ebp, ebp
push ebx
push dword [esi - 4]
call fcn.013ef06c
add esp, 8
test eax, eax
je 0x13a8e3b
inc ebp
add esi, 0x10
cmp ebp, dword [esp + 0x2c]
jl 0x13a8e17
mov ebp, dword [esp + 0xc]
mov esi, dword [esp + 4]
jmp 0x13a8e7a
mov ecx, dword [esi]
mov ebp, dword [esp + 0xc]
mov esi, dword [esp + 4]
cmp ecx, 0xffffffff
je 0x13a8e7a
mov edx, dword [esp + 8]
xor eax, eax
inc eax
shl eax, cl
bt edx, ecx
jb 0x13a8e7a
or dword [esp + 8], eax
push ecx
mov esi, dword [esp + 4]
push esi
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call fcn.013a1a3f
add esp, 0x10
inc esi
mov dword [esp], esi
mov esi, dword [esp + 4]
mov ebx, edi
lea edi, [ebx + 1]
jmp 0x13a8e83
inc ebx
inc edi
mov al, byte [ebx]
cmp al, 0x2c
je 0x13a8e81
test al, al
jne 0x13a8de7
push esi
call fcn.013a31d8
add esp, 4
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
mov eax, edi
cmp dword [esp], eax
jge 0x13a8ffc
test eax, eax
jle 0x13a8ff3
xor edx, edx
mov esi, edx
shl esi, 4
lea edi, [ebp + esi + 4]
mov eax, dword [edi]
cmp eax, 0x20
jl 0x13a8ef0
push 0x168
push 0x404810
push 0x404b8e
mov ebx, edi
mov edi, ebp
mov ebp, edx
call fcn.013ec93a
mov edx, ebp
mov ebp, edi
mov edi, ebx
mov ebx, dword [esp + 0x3c]
add esp, 0xc
mov eax, dword [edi]
mov ecx, dword [esp + 8]
bt ecx, eax
jae 0x13a8f02
mov eax, dword [esp + 0x2c]
jmp 0x13a8fea
mov eax, dword [ebp + esi + 8]
mov dword [esp + 4], edx
cmp eax, 0xffffffff
je 0x13a8f42
mov ecx, dword [esp + 8]
bt ecx, eax
jae 0x13a8ef9
cmp dword [esp], 0
mov dword [esp + 0x14], edi
jle 0x13a8f54
lea edi, [ebp + esi + 8]
xor ebp, ebp
push ebp
push dword [esp + 0x38]
push ebx
call fcn.013a1515
add esp, 0xc
cmp eax, dword [edi]
je 0x13a8f6d
inc ebp
cmp ebp, dword [esp]
jl 0x13a8f28
jmp 0x13a8f56
mov dword [esp + 0x14], edi
mov eax, dword [esp]
mov esi, dword [ebp + esi + 0xc]
sar esi, 0x1f
and esi, eax
jmp 0x13a8f80
xor ebp, ebp
push 0x17c
push 0x404810
push 0x404bb2
call fcn.013ec93a
add esp, 0xc
mov eax, dword [esp + 0xc]
mov esi, dword [eax + esi + 0xc]
mov eax, dword [esp]
shr esi, 0x1f
xor esi, 1
add esi, ebp
mov ebx, dword [esp + 0x34]
cmp eax, esi
mov ecx, ebx
mov ebx, dword [esp + 0x30]
jle 0x13a8fbd
mov edi, dword [esp]
mov dword [esp + 0x10], esi
lea ebp, [edi - 1]
push ebp
push ecx
push ebx
mov esi, ecx
call fcn.013a1515
add esp, 0xc
push eax
push edi
push esi
push ebx
call fcn.013a1a3f
mov ecx, esi
mov esi, dword [esp + 0x20]
add esp, 0x10
cmp ebp, esi
mov edi, ebp
jg 0x13a8f95
mov edi, dword [esp + 0x14]
push dword [edi]
push esi
push ecx
push ebx
call fcn.013a1a3f
add esp, 0x10
mov cl, byte [edi]
xor eax, eax
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0xc]
mov edx, dword [esp + 4]
inc dword [esp]
inc eax
shl eax, cl
or dword [esp + 8], eax
mov eax, edi
inc edx
cmp edx, eax
jne 0x13a8eb7
cmp dword [esp], eax
jl 0x13a8ead
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret