Function at 0x1008b270
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x18
call fcn.100ba4f0
push esi
mov esi, dword [esp + 0x20]
mov eax, dword [esi + 0x170]
mov ecx, dword [esi + 0x174]
mov edx, dword [esi + 0x160]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x164]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
xor eax, eax
add ecx, dword [esi + 0x38]
mov dword [esp + 0x20], edx
adc eax, dword [esi + 0x3c]
cmp eax, 0xf
ja 0x1008b4fc
jb 0x1008b2c7
cmp ecx, 0xffffffe0
ja 0x1008b4fc
cmp dword [esi + 0x16c], 0
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
je 0x1008b2ed
lea ecx, [esi + 0x60]
push ecx
lea eax, [esi + 0x40]
push eax
call edx
add esp, 8
mov dword [esi + 0x16c], 0
push ebx
mov ebx, dword [esi + 0xc]
push ebp
mov ebp, dword [esi + 0x168]
push edi
mov edi, dword [esp + 0x34]
bswap ebx
mov dword [esp + 0x10], ebp
test ebp, ebp
je 0x1008b34f
cmp dword [esp + 0x38], 0
je 0x1008b334
mov al, byte [esi + ebp + 0x10]
mov ecx, dword [esp + 0x30]
xor al, byte [ecx]
dec dword [esp + 0x38]
mov byte [edi], al
xor byte [esi + ebp + 0x40], al
inc ecx
inc ebp
inc edi
and ebp, 0xf
mov dword [esp + 0x30], ecx
jne 0x1008b307
mov dword [esp + 0x10], ebp
jmp 0x1008b340
mov dword [esp + 0x10], ebp
test ebp, ebp
jne 0x1008b4ec
lea ecx, [esi + 0x60]
push ecx
lea edx, [esi + 0x40]
push edx
call dword [esp + 0x34]
add esp, 8
mov ecx, dword [esp + 0x38]
cmp ecx, 0xc00
jb 0x1008b402
mov eax, 0xaaaaaaab
mul ecx
shr edx, 0xb
lea ebp, [esi + 0x10]
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], 0xc0
jmp 0x1008b384
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
push eax
push ebp
push esi
call dword [esp + 0x24]
mov edx, dword [esp + 0x3c]
inc ebx
mov dword [esp + 0x38], ebx
bswap ebx
add esp, 0xc
xor eax, eax
mov dword [esi + 0xc], ebx
mov ecx, edi
sub edx, edi
mov ebx, dword [edx + ecx]
xor ebx, dword [eax + ebp]
add eax, 4
mov dword [ecx], ebx
add ecx, 4
cmp eax, 0x10
jb 0x1008b3a6
add dword [esp + 0x30], 0x10
add edi, 0x10
sub dword [esp + 0x1c], 1
jne 0x1008b380
push 0xc00
lea ecx, [edi - 0xc00]
push ecx
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call dword [esp + 0x34]
sub dword [esp + 0x48], 0xc00
mov ebx, dword [esp + 0x3c]
add esp, 0x10
sub dword [esp + 0x20], 1
jne 0x1008b370
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
mov eax, ecx
and eax, 0xfffffff0
je 0x1008b4a3
mov dword [esp + 0x10], eax
cmp ecx, 0x10
jb 0x1008b48a
shr ecx, 4
mov dword [esp + 0x20], ecx
lea ecx, [ecx]
mov edx, dword [esp + 0x14]
push edx
lea eax, [esi + 0x10]
push eax
push esi
call dword [esp + 0x24]
mov edx, dword [esp + 0x3c]
inc ebx
mov eax, ebx
bswap eax
mov dword [esi + 0xc], eax
add esp, 0xc
xor eax, eax
mov ecx, edi
sub edx, edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], edx
jmp 0x1008b454
mov edx, dword [esp + 0x1c]
mov edx, dword [ecx + edx]
xor edx, dword [esi + eax + 0x10]
mov ecx, dword [esp + 0x2c]
mov dword [ecx], edx
add eax, 4
add ecx, 4
mov dword [esp + 0x2c], ecx
cmp eax, 0x10
jb 0x1008b450
mov eax, 0x10
add dword [esp + 0x30], eax
sub dword [esp + 0x38], eax
add edi, eax
sub dword [esp + 0x20], 1
jne 0x1008b420
mov eax, dword [esp + 0x10]
push eax
mov ecx, edi
sub ecx, eax
push ecx
lea edx, [esi + 0x60]
push edx
lea eax, [esi + 0x40]
push eax
call dword [esp + 0x34]
mov ecx, dword [esp + 0x48]
add esp, 0x10
test ecx, ecx
je 0x1008b4ec
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esi + 0x10]
push edx
push esi
call dword [esp + 0x24]
mov edx, dword [esp + 0x3c]
inc ebx
bswap ebx
add esp, 0xc
mov dword [esi + 0xc], ebx
lea ecx, [edi + ebp]
sub edx, edi
jmp 0x1008b4d0
mov al, byte [esi + ebp + 0x10]
xor al, byte [ecx + edx]
mov edi, dword [esp + 0x38]
mov byte [ecx], al
xor byte [esi + ebp + 0x40], al
dec edi
inc ebp
inc ecx
mov dword [esp + 0x38], edi
test edi, edi
jne 0x1008b4d0
pop edi
mov dword [esi + 0x168], ebp
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x18
ret
or eax, 0xffffffff
pop esi
add esp, 0x18
ret