Function at 0x10133850
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x18
call fcn.1018f810
mov edx, dword [esp + 0x28]
xor ecx, ecx
push esi
mov esi, dword [esp + 0x20]
mov eax, dword [esi + 0x170]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x174]
mov dword [esp + 0x10], eax
mov eax, edx
add eax, dword [esi + 0x38]
adc ecx, dword [esi + 0x3c]
cmp ecx, 0xf
ja 0x10133b42
jb 0x10133895
cmp eax, 0xffffffe0
ja 0x10133b42
cmp dword [esi + 0x16c], 0
mov dword [esi + 0x3c], ecx
lea ecx, [esi + 0x40]
mov dword [esi + 0x38], eax
lea eax, [esi + 0x60]
mov dword [esp + 8], ecx
je 0x101338cb
push eax
push ecx
call fcn.10134bc0
mov edx, dword [esp + 0x34]
lea ecx, [esi + 0x40]
add esp, 8
mov dword [esi + 0x16c], 0
jmp 0x101338cf
mov dword [esp + 8], ecx
movzx eax, byte [esi + 0xd]
push ebx
movzx ebx, byte [esi + 0xc]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 0xe]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 0xf]
shl ebx, 8
push ebp
mov ebp, dword [esp + 0x30]
or ebx, eax
mov eax, dword [esi + 0x168]
mov dword [esp + 0xc], eax
push edi
mov edi, dword [esp + 0x30]
test eax, eax
je 0x1013395e
mov dword [esp + 0x18], ecx
nop dword [eax + eax]
test edx, edx
je 0x10133945
mov al, byte [eax + esi + 0x10]
dec edx
mov cl, byte [edi]
inc edi
xor al, cl
mov dword [esp + 0x38], edx
mov byte [ebp], al
lea eax, [esi + 0x40]
mov dword [esp + 0x18], eax
inc ebp
mov eax, dword [esp + 0x10]
xor byte [eax + esi + 0x40], cl
inc eax
and eax, 0xf
mov dword [esp + 0x10], eax
jne 0x10133910
mov ecx, dword [esp + 0x18]
jmp 0x10133951
mov ecx, dword [esp + 0x18]
test eax, eax
jne 0x10133b1e
lea eax, [esi + 0x60]
push eax
push ecx
call fcn.10134bc0
add esp, 8
mov ecx, dword [esp + 0x38]
cmp ecx, 0xc00
jb 0x10133a15
mov eax, 0xaaaaaaab
mul ecx
shr edx, 0xb
mov dword [esp + 0x24], edx
nop dword [eax]
push 0xc00
push edi
lea eax, [esi + 0x60]
push eax
push dword [esp + 0x20]
call fcn.10134990
add esp, 0x10
mov dword [esp + 0x18], 0xc0
nop
push dword [esp + 0x1c]
lea eax, [esi + 0x10]
push eax
push esi
call dword [esp + 0x2c]
inc ebx
add esp, 0xc
mov eax, ebx
mov byte [esi + 0xf], bl
shr eax, 0x18
mov byte [esi + 0xc], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ebx
shr eax, 8
mov byte [esi + 0xe], al
mov eax, dword [edi]
xor eax, dword [esi + 0x10]
mov dword [ebp], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x14]
mov dword [ebp + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
mov dword [ebp + 8], eax
mov eax, dword [edi + 0xc]
add edi, 0x10
xor eax, dword [esi + 0x1c]
mov dword [ebp + 0xc], eax
add ebp, 0x10
sub dword [esp + 0x18], 1
jne 0x101339a0
mov ecx, dword [esp + 0x38]
sub ecx, 0xc00
sub dword [esp + 0x24], 1
mov dword [esp + 0x38], ecx
jne 0x10133980
mov eax, ecx
and eax, 0xfffffff0
je 0x10133aac
push eax
push edi
lea eax, [esi + 0x60]
push eax
push dword [esp + 0x20]
call fcn.10134990
mov ecx, dword [esp + 0x48]
add esp, 0x10
cmp ecx, 0x10
jb 0x10133aac
shr ecx, 4
lea eax, [esi + 0x10]
mov dword [esp + 0x24], ecx
push dword [esp + 0x1c]
push eax
push esi
call dword [esp + 0x2c]
inc ebx
mov ecx, dword [esp + 0x44]
mov eax, ebx
mov byte [esi + 0xf], bl
shr eax, 0x18
sub ecx, 0x10
mov byte [esi + 0xc], al
add esp, 0xc
mov eax, ebx
mov dword [esp + 0x38], ecx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ebx
shr eax, 8
mov byte [esi + 0xe], al
mov eax, dword [edi]
xor eax, dword [esi + 0x10]
mov dword [ebp], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x14]
mov dword [ebp + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
mov dword [ebp + 8], eax
mov eax, dword [edi + 0xc]
add edi, 0x10
xor eax, dword [esi + 0x1c]
mov dword [ebp + 0xc], eax
add ebp, 0x10
sub dword [esp + 0x24], 1
lea eax, [esi + 0x10]
jne 0x10133a45
test ecx, ecx
je 0x10133b2e
push dword [esp + 0x1c]
lea eax, [esi + 0x10]
push eax
push esi
call dword [esp + 0x2c]
mov edx, dword [esp + 0x44]
inc ebx
mov eax, ebx
mov byte [esi + 0xf], bl
shr eax, 0x18
add esp, 0xc
mov byte [esi + 0xc], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ebx
mov ebx, dword [esp + 0x10]
shr eax, 8
sub edi, ebp
mov byte [esi + 0xe], al
lea esi, [ebx + ebp]
mov ebp, dword [esp + 0x14]
nop dword [eax]
mov cl, byte [edi + esi]
lea eax, [ebx + ebp]
xor byte [eax], cl
lea esi, [esi + 1]
mov al, byte [ebx + ebp - 0x30]
inc ebx
xor al, cl
mov byte [esi - 1], al
sub edx, 1
jne 0x10133af0
mov esi, dword [esp + 0x2c]
xor eax, eax
pop edi
pop ebp
mov dword [esi + 0x168], ebx
pop ebx
pop esi
add esp, 0x18
ret
pop edi
pop ebp
mov dword [esi + 0x168], eax
xor eax, eax
pop ebx
pop esi
add esp, 0x18
ret
mov ebx, dword [esp + 0x10]
xor eax, eax
pop edi
pop ebp
mov dword [esi + 0x168], ebx
pop ebx
pop esi
add esp, 0x18
ret
or eax, 0xffffffff
pop esi
add esp, 0x18
ret