Function at 0x5598f0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x18
call fcn.004855d0
mov ecx, dword [esp + 0x28]
xor edx, edx
push ebx
push esi
mov esi, dword [esp + 0x24]
mov eax, dword [esi + 0x170]
mov ebx, dword [esi + 0x160]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x174]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x164]
mov dword [esp + 0x18], eax
mov eax, ecx
add eax, dword [esi + 0x38]
mov dword [esp + 0x14], ebx
adc edx, dword [esi + 0x3c]
cmp edx, 0xf
ja 0x559b7d
jb 0x55994a
cmp eax, 0xffffffe0
ja 0x559b7d
cmp dword [esi + 0x16c], 0
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
je 0x559974
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call ebx
mov ecx, dword [esp + 0x38]
add esp, 8
mov dword [esi + 0x16c], 0
mov eax, dword [esi + 0xc]
mov ebx, dword [esp + 0x2c]
push ebp
mov ebp, dword [esi + 0x168]
mov dword [esp + 0xc], ebp
bswap eax
mov dword [esp + 0x28], eax
push edi
mov edi, dword [esp + 0x30]
test ebp, ebp
je 0x5599cf
test ecx, ecx
je 0x5599b8
mov al, byte [esi + ebp + 0x10]
dec ecx
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 + 0x38], ecx
mov dword [esp + 0x10], ebp
jne 0x559995
jmp 0x5599c0
test ebp, ebp
jne 0x559b6d
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call dword [esp + 0x24]
add esp, 8
mov ecx, dword [esp + 0x38]
cmp ecx, 0xc00
jb 0x559a83
mov ebp, dword [esp + 0x2c]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 0xb
mov dword [esp + 0x1c], edx
mov dword [esp + 0x2c], 0xc0
nop dword [eax]
push dword [esp + 0x14]
lea eax, [esi + 0x10]
push eax
push esi
call dword [esp + 0x24]
inc ebp
add esp, 0xc
mov eax, ebp
bswap eax
mov dword [esi + 0xc], eax
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 + 0x2c], 1
jne 0x559a00
push 0xc00
lea eax, [ebx - 0xc00]
mov dword [esp + 0x30], ebp
push eax
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call dword [esp + 0x30]
mov ecx, dword [esp + 0x48]
add esp, 0x10
sub ecx, 0xc00
sub dword [esp + 0x1c], 1
mov dword [esp + 0x38], ecx
jne 0x5599f1
mov ebp, dword [esp + 0x10]
mov edx, ecx
and edx, 0xfffffff0
mov dword [esp + 0x24], edx
je 0x559b1a
cmp ecx, 0x10
jb 0x559b01
mov ebp, dword [esp + 0x38]
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 eax, dword [esp + 0x38]
add esp, 0xc
inc eax
sub ebp, 0x10
mov dword [esp + 0x2c], eax
bswap eax
mov dword [esi + 0xc], eax
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]
jne 0x559aa5
mov edx, dword [esp + 0x24]
mov dword [esp + 0x38], 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 dword [esp + 0x30]
mov ecx, dword [esp + 0x48]
add esp, 0x10
test ecx, ecx
je 0x559b6d
push dword [esp + 0x14]
lea eax, [esi + 0x10]
push eax
push esi
call dword [esp + 0x24]
mov eax, dword [esp + 0x38]
add esp, 0xc
mov edx, dword [esp + 0x38]
inc eax
bswap eax
mov dword [esi + 0xc], eax
sub edi, ebx
lea eax, [ebx + ebp]
mov dword [esp + 0x2c], eax
mov ebx, eax
nop word [eax + 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 0x559b50
pop edi
mov dword [esi + 0x168], ebp
xor eax, eax
pop ebp
pop esi
pop ebx
add esp, 0x18
ret
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret