Function at 0x55afb0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.0058f400
mov edx, dword [esp + 0x24]
xor ecx, ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 0x170]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x174]
mov dword [esp + 8], eax
mov eax, edx
add eax, dword [esi + 0x38]
adc ecx, dword [esi + 0x3c]
cmp ecx, 0xf
ja 0x55b281
jb 0x55aff5
cmp eax, 0xffffffe0
ja 0x55b281
cmp dword [esi + 0x16c], 0
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
je 0x55b022
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.0055bbf0
mov edx, dword [esp + 0x30]
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 [esp + 0x28]
shl ecx, 8
push ebp
mov ebp, dword [esi + 0x168]
or ecx, eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0xc], ebp
push edi
mov edi, dword [esp + 0x2c]
test ebp, ebp
je 0x55b09b
nop
test edx, edx
je 0x55b083
mov al, byte [esi + ebp + 0x10]
dec edx
xor al, byte [edi]
inc edi
mov byte [ebx], al
inc ebx
xor byte [esi + ebp + 0x40], al
inc ebp
and ebp, 0xf
mov dword [esp + 0x34], edx
mov dword [esp + 0x10], ebp
jne 0x55b060
jmp 0x55b08b
test ebp, ebp
jne 0x55b271
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.0055bbf0
add esp, 8
mov ecx, dword [esp + 0x34]
cmp ecx, 0xc00
jb 0x55b15f
mov eax, 0xaaaaaaab
mul ecx
shr edx, 0xb
mov dword [esp + 0x1c], edx
nop dword [eax]
mov ebp, 0xc0
push dword [esp + 0x14]
lea eax, [esi + 0x10]
push eax
push esi
call dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
add esp, 0xc
inc ecx
mov eax, ecx
mov byte [esi + 0xf], cl
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 [edi]
xor eax, dword [esi + 0x10]
mov dword [ebx], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x14]
mov dword [ebx + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
add edi, 0x10
xor eax, dword [esi + 0x1c]
mov dword [ebx + 0xc], eax
add ebx, 0x10
mov dword [esp + 0x28], ecx
sub ebp, 1
jne 0x55b0c5
push 0xc00
lea eax, [ebx - 0xc00]
push eax
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.0055b9b0
mov ecx, dword [esp + 0x44]
add esp, 0x10
sub ecx, 0xc00
sub dword [esp + 0x1c], 1
mov dword [esp + 0x34], ecx
jne 0x55b0c0
mov ebp, dword [esp + 0x10]
mov edx, ecx
and edx, 0xfffffff0
mov dword [esp + 0x20], edx
je 0x55b211
cmp ecx, 0x10
jb 0x55b1f7
mov ebp, dword [esp + 0x34]
lea eax, [esi + 0x10]
shr ecx, 4
mov dword [esp + 0x1c], ecx
push dword [esp + 0x14]
push eax
push esi
call dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
add esp, 0xc
inc ecx
sub ebp, 0x10
mov eax, ecx
mov byte [esi + 0xf], cl
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 [edi]
xor eax, dword [esi + 0x10]
mov dword [ebx], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x14]
mov dword [ebx + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
add edi, 0x10
xor eax, dword [esi + 0x1c]
mov dword [ebx + 0xc], eax
add ebx, 0x10
sub dword [esp + 0x1c], 1
lea eax, [esi + 0x10]
mov dword [esp + 0x28], ecx
jne 0x55b185
mov edx, dword [esp + 0x20]
mov dword [esp + 0x34], ebp
mov ebp, dword [esp + 0x10]
push edx
mov eax, ebx
sub eax, edx
push eax
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.0055b9b0
mov ecx, dword [esp + 0x44]
add esp, 0x10
test ecx, ecx
je 0x55b271
push dword [esp + 0x14]
lea eax, [esi + 0x10]
push eax
push esi
call dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
add esp, 0xc
mov edx, dword [esp + 0x34]
inc ecx
mov eax, ecx
mov byte [esi + 0xf], cl
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
sub edi, ebx
mov byte [esi + 0xe], al
lea eax, [ebx + ebp]
mov dword [esp + 0x28], eax
mov ebx, eax
movzx eax, byte [edi + ebx]
lea ebx, [ebx + 1]
movzx ecx, byte [esi + ebp + 0x10]
xor ecx, eax
lea eax, [esi + ebp]
mov byte [ebx - 1], cl
inc ebp
xor byte [eax + 0x40], cl
sub edx, 1
jne 0x55b254
pop edi
mov dword [esi + 0x168], ebp
xor eax, eax
pop ebp
pop ebx
pop esi
add esp, 0x14
ret
or eax, 0xffffffff
pop esi
add esp, 0x14
ret