Function at 0x1009b9a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x50
call fcn.100feb80
mov eax, dword [0x1016fb90]
xor eax, esp
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
push ebx
push ebp
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x68]
push esi
mov esi, dword [esp + 0x60]
mov ebp, dword [esi + 0x54]
mov ebx, ecx
shr ebx, 4
mov dword [esp + 0xc], eax
push edi
mov edi, dword [esi + 0x50]
xor edx, edx
mov eax, ebx
add eax, edi
adc edx, ebp
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
test ebx, ebx
je 0x1009ba6b
xor edx, edx
cmp eax, eax
jne 0x1009ba6b
cmp dword [esp + 0x18], edx
jne 0x1009ba6b
cmp dword [esi + 0x10], edx
je 0x1009ba6b
xor ecx, ecx
shr eax, 1
je 0x1009ba15
nop
inc ecx
shr eax, 1
jne 0x1009ba10
push ecx
push esi
call fcn.1009b340
add esp, 8
test eax, eax
jne 0x1009ba38
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.100fef11
add esp, 0x50
ret
mov eax, dword [esi + 0x40]
lea edx, [esi + 0x98]
push edx
mov edx, dword [esi + 0x50]
push eax
mov eax, dword [esi + 8]
lea ecx, [esi + 0x88]
push ecx
mov ecx, dword [esp + 0x28]
inc edx
push edx
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esi + 0x10]
push ebx
push ecx
push edx
call eax
add esp, 0x20
jmp 0x1009bbc6
add edi, 1
adc ebp, 0
cmp ebp, dword [esp + 0x18]
ja 0x1009bbce
jb 0x1009ba85
cmp edi, eax
ja 0x1009bbce
mov eax, edi
and eax, 1
xor ebx, ebx
or eax, ebx
mov ecx, edi
mov edx, ebp
mov dword [esp + 0x20], 0
jne 0x1009bab5
lea esp, [esp]
inc dword [esp + 0x20]
shrd ecx, edx, 1
mov eax, ecx
and eax, 1
xor ebx, ebx
shr edx, 1
or eax, ebx
je 0x1009baa0
mov ecx, dword [esp + 0x20]
push ecx
push esi
call fcn.1009b340
add esp, 8
test eax, eax
je 0x1009ba23
mov edx, dword [eax]
xor dword [esi + 0x88], edx
mov ecx, dword [eax + 4]
xor dword [esi + 0x8c], ecx
mov edx, dword [eax + 8]
xor dword [esi + 0x90], edx
mov eax, dword [eax + 0xc]
xor dword [esi + 0x94], eax
mov ecx, dword [esi + 0x88]
mov edx, dword [esi + 0x8c]
mov eax, edi
sub eax, dword [esi + 0x50]
dec eax
shl eax, 4
add eax, dword [esp + 0x10]
xor ecx, dword [eax]
xor edx, dword [eax + 4]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 0x90]
mov dword [esp + 0x30], edx
xor ecx, dword [eax + 8]
mov edx, dword [esi + 0x94]
xor edx, dword [eax + 0xc]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov ecx, dword [eax]
xor dword [esi + 0x98], ecx
mov edx, dword [eax + 4]
xor dword [esi + 0x9c], edx
mov ecx, dword [eax + 8]
xor dword [esi + 0xa0], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esi + 8]
xor dword [esi + 0xa4], edx
push eax
mov eax, dword [esi]
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x34]
push edx
call eax
mov ecx, dword [esi + 0x88]
xor ecx, dword [esp + 0x48]
mov edx, dword [esi + 0x8c]
xor edx, dword [esp + 0x4c]
mov eax, edi
sub eax, dword [esi + 0x50]
add esp, 0xc
dec eax
shl eax, 4
add eax, dword [esp + 0x1c]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ecx, dword [esi + 0x90]
mov edx, dword [esi + 0x94]
xor ecx, dword [esp + 0x44]
xor edx, dword [esp + 0x48]
add edi, 1
adc ebp, 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
cmp ebp, dword [esp + 0x18]
jb 0x1009ba85
ja 0x1009bbc2
cmp edi, dword [esp + 0x14]
jbe 0x1009ba85
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
and ecx, 0xf
mov edi, ecx
jbe 0x1009bc99
mov ecx, dword [esi + 0x20]
xor dword [esi + 0x88], ecx
mov edx, dword [esi + 0x24]
xor dword [esi + 0x8c], edx
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x2c]
xor dword [esi + 0x90], ecx
mov ecx, dword [esi + 8]
xor dword [esi + 0x94], edx
lea eax, [esi + 0x88]
push ecx
lea edx, [esp + 0x50]
push edx
push eax
mov eax, dword [esi]
call eax
add esp, 0xc
xor eax, eax
test edi, edi
je 0x1009bc40
mov ebp, ebx
shl ebp, 4
add ebp, dword [esp + 0x10]
mov ecx, ebx
shl ecx, 4
add ecx, dword [esp + 0x1c]
lea esp, [esp]
mov dl, byte [eax + ebp]
xor dl, byte [esp + eax + 0x4c]
inc eax
mov byte [ecx + eax - 1], dl
cmp eax, edi
jb 0x1009bc30
xor eax, eax
shl ebx, 4
add ebx, dword [esp + 0x10]
push edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x30]
push ebx
push eax
call fcn.100febb0
mov byte [esp + edi + 0x38], 0x80
mov ecx, dword [esp + 0x38]
xor dword [esi + 0x98], ecx
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
xor dword [esi + 0xa0], eax
mov ecx, dword [esp + 0x44]
xor dword [esi + 0x9c], edx
mov eax, dword [esp + 0x20]
add esp, 0xc
xor dword [esi + 0xa4], ecx
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x5c]
pop edi
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], edx
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.100fef11
add esp, 0x50
ret