Function at 0x54e970
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x18
call fcn.0045cf80
push ebx
mov ebx, dword [esp + 0x20]
xor ecx, ecx
push edi
mov edi, dword [esp + 0x30]
mov eax, dword [ebx + 0x178]
mov dword [esp + 0x1c], eax
mov eax, edi
add eax, dword [ebx + 0x38]
adc ecx, dword [ebx + 0x3c]
cmp ecx, 0xf
ja 0x54ec8d
jb 0x54e9ac
cmp eax, 0xffffffe0
ja 0x54ec8d
cmp dword [ebx + 0x170], 0
mov edx, dword [ebx + 0x16c]
mov dword [ebx + 0x3c], ecx
lea ecx, [ebx + 0x40]
push ebp
push esi
mov dword [ebx + 0x38], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
je 0x54ebcc
test edi, edi
jne 0x54e9f6
lea eax, [ebx + 0x60]
push eax
mov eax, dword [ebx + 0x168]
push ecx
call eax
add esp, 8
mov dword [ebx + 0x170], edi
xor eax, eax
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x18
ret
movups xmm0, xmmword [ecx]
lea eax, [ebx + 0x17c]
mov dword [esp + 0x38], 0
mov dword [esp + 0x20], eax
mov edx, 0x10
movups xmmword [eax], xmm0
mov dword [ecx], 0
lea eax, [ebx + 0xc]
mov dword [ecx + 4], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
mov dword [esp + 0x18], eax
mov eax, dword [eax]
bswap eax
mov dword [esp + 0x10], edx
mov dword [ebx + 0x170], 0
mov dword [esp + 0x2c], eax
mov esi, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x1c], esi
lea eax, [ebx + 0x60]
cmp edi, 0x10
jb 0x54ea7d
test edx, edx
je 0x54ea7d
push edx
push dword [esp + 0x24]
push eax
mov eax, dword [ebx + 0x164]
push ecx
call eax
add esp, 0x10
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x3c]
cmp edi, 0xc00
jb 0x54eafd
mov eax, 0xaaaaaaab
mul edi
shr edx, 0xb
mov dword [esp + 0x20], edx
nop word [eax + eax]
push ebx
push dword [esp + 0x28]
push 0xc0
push esi
push ebp
call ecx
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x2c]
add eax, 0xc0
mov dword [esp + 0x40], eax
bswap eax
push 0xc00
mov dword [ecx], eax
lea eax, [ebx + 0x60]
push esi
push eax
push dword [esp + 0x34]
mov eax, dword [ebx + 0x164]
call eax
mov ecx, dword [esp + 0x60]
add esp, 0x24
add esi, 0xc00
add ebp, 0xc00
sub edi, 0xc00
sub dword [esp + 0x20], 1
jne 0x54eaa0
mov dword [esp + 0x1c], esi
mov eax, edi
and eax, 0xfffffff0
mov dword [esp + 0x20], eax
je 0x54eb51
push ebx
push dword [esp + 0x28]
mov esi, eax
shr esi, 4
push esi
push dword [esp + 0x28]
push ebp
call ecx
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x2c]
add eax, esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0x40], eax
bswap eax
mov dword [ecx], eax
mov eax, dword [esp + 0x34]
add ebp, eax
push eax
sub edi, eax
lea eax, [ebx + 0x60]
push esi
push eax
push dword [esp + 0x34]
mov eax, dword [ebx + 0x164]
call eax
add esp, 0x24
add esi, dword [esp + 0x20]
test edi, edi
je 0x54ebb8
push dword [esp + 0x24]
lea eax, [ebx + 0x10]
push eax
mov eax, dword [ebx + 0x174]
push ebx
call eax
mov eax, dword [esp + 0x38]
sub ebp, esi
mov ecx, dword [esp + 0x24]
inc eax
mov edx, dword [esp + 0x1c]
add esp, 0xc
bswap eax
add edx, 0x17c
mov dword [ecx], eax
add edx, ebx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x38]
add eax, 0x10
add eax, ebx
add ecx, esi
add dword [esp + 0x10], edi
mov esi, eax
mov dword [esp + 0x2c], eax
nop dword [eax]
mov al, byte [ecx + ebp]
lea edx, [edx + 1]
xor al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
mov byte [edx - 1], al
sub edi, 1
jne 0x54eba0
mov eax, dword [esp + 0x10]
pop esi
pop ebp
mov dword [ebx + 0x16c], eax
xor eax, eax
pop edi
pop ebx
add esp, 0x18
ret
lea eax, [ebx + 0x17c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], eax
lea eax, [ebx + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [eax]
bswap eax
mov dword [esp + 0x2c], eax
mov eax, edx
and eax, 0xf
mov dword [esp + 0x38], eax
je 0x54ea4b
mov esi, dword [esp + 0x34]
lea ecx, [ebx + 0x17c]
mov ebp, dword [esp + 0x30]
add ecx, edx
test edi, edi
je 0x54ec7d
mov al, byte [eax + ebx + 0x10]
inc edx
xor al, byte [ebp]
dec edi
mov byte [esi], al
inc ebp
mov byte [ecx], al
inc esi
mov eax, dword [esp + 0x38]
inc ecx
inc eax
mov dword [esp + 0x1c], esi
and eax, 0xf
mov dword [esp + 0x38], eax
jne 0x54ec08
push edx
lea eax, [ebx + 0x17c]
push eax
lea eax, [ebx + 0x60]
push eax
mov eax, dword [ebx + 0x164]
lea ecx, [ebx + 0x40]
push ecx
call eax
mov eax, dword [esp + 0x48]
add esp, 0x10
mov ecx, dword [esp + 0x14]
xor edx, edx
mov dword [esp + 0x38], eax
lea eax, [ebx + 0x17c]
mov dword [esp + 0x20], eax
lea eax, [ebx + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], eax
jmp 0x54ea57
pop esi
pop ebp
pop edi
mov dword [ebx + 0x16c], edx
xor eax, eax
pop ebx
add esp, 0x18
ret
pop edi
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret