Function at 0x10102390
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.10163610
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x18]
xor ecx, ecx
mov eax, dword [esi + 0x174]
mov dword [esp + 0xc], eax
mov eax, ebp
add eax, dword [esi + 0x38]
adc ecx, dword [esi + 0x3c]
cmp ecx, 0xf
ja 0x101025ea
jb 0x101023cc
cmp eax, 0xffffffe0
ja 0x101025ea
cmp dword [esi + 0x16c], 0
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
je 0x101023f5
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.101031e0
add esp, 8
mov dword [esi + 0x16c], 0
movzx ecx, byte [esi + 0xc]
movzx eax, byte [esi + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xf]
push ebx
mov ebx, dword [esi + 0x168]
shl ecx, 8
push edi
mov edi, dword [esp + 0x24]
or ecx, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x2c], edi
test ebx, ebx
je 0x1010247b
mov edx, dword [esp + 0x28]
mov dword [esp + 0x20], edx
test ebp, ebp
je 0x10102461
mov cl, byte [edi]
mov al, byte [ebx + esi + 0x10]
xor al, cl
mov byte [edx], al
xor byte [ebx + esi + 0x40], cl
inc edi
inc edx
inc ebx
dec ebp
and ebx, 0xf
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], ebx
jne 0x10102438
jmp 0x10102469
test ebx, ebx
jne 0x101025da
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.101031e0
add esp, 8
jmp 0x10102483
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], eax
cmp ebp, 0xc00
jb 0x10102514
mov ebx, dword [esp + 0x10]
mov eax, 0xaaaaaaab
mul ebp
shr edx, 0xb
lea ecx, [esi + 0x60]
mov dword [esp + 0x2c], edx
push 0xc00
push edi
push ecx
lea eax, [esi + 0x40]
push eax
call fcn.10102fa0
push esi
push dword [esp + 0x28]
push 0xc0
push dword [esp + 0x3c]
push edi
call dword [esp + 0x54]
add dword [esp + 0x44], 0xc00
add ebx, 0xc0
mov eax, ebx
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
add esp, 0x24
add edi, 0xc00
sub ebp, 0xc00
dec dword [esp + 0x2c]
mov byte [esi + 0xe], al
mov byte [esi + 0xf], bl
lea ecx, [esi + 0x60]
jne 0x101024a4
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x2c], edi
mov eax, ebp
and eax, 0xfffffff0
mov dword [esp + 0x18], eax
je 0x10102580
push eax
push dword [esp + 0x30]
mov edi, eax
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
shr edi, 4
call fcn.10102fa0
push esi
push dword [esp + 0x28]
push edi
push dword [esp + 0x3c]
push dword [esp + 0x4c]
call dword [esp + 0x54]
mov ecx, dword [esp + 0x34]
add ecx, edi
mov edi, dword [esp + 0x50]
mov eax, ecx
shr eax, 0x18
mov byte [esi + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [esi + 0xe], al
mov eax, dword [esp + 0x3c]
add dword [esp + 0x44], eax
add esp, 0x24
add edi, eax
mov dword [esp + 0x10], ecx
mov byte [esi + 0xf], cl
sub ebp, eax
test ebp, ebp
je 0x101025da
push dword [esp + 0x14]
lea eax, [esi + 0x10]
push eax
mov eax, dword [esi + 0x170]
push esi
call eax
mov ecx, dword [esp + 0x1c]
inc ecx
mov eax, ecx
shr eax, 0x18
mov byte [esi + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [esi + 0xe], al
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov byte [esi + 0xf], cl
lea edx, [ebx + eax]
sub edi, eax
mov cl, byte [edi + edx]
xor byte [esi + ebx + 0x40], cl
lea eax, [esi + ebx]
mov al, byte [esi + ebx + 0x10]
xor al, cl
inc ebx
mov byte [edx], al
lea edx, [edx + 1]
dec ebp
jne 0x101025c1
pop edi
mov dword [esi + 0x168], ebx
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0xc
ret