Function at 0x575270
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x18
call fcn.005d6920
push ebx
mov ebx, dword [esp + 0x20]
xor ecx, ecx
push esi
mov esi, dword [esp + 0x30]
mov eax, dword [ebx + 0x174]
mov edx, dword [ebx + 0x160]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x164]
mov dword [esp + 0x18], eax
mov eax, esi
add eax, dword [ebx + 0x38]
mov dword [esp + 0x24], edx
adc ecx, dword [ebx + 0x3c]
cmp ecx, 0xf
ja 0x57549b
jb 0x5752c0
cmp eax, 0xffffffe0
ja 0x57549b
cmp dword [ebx + 0x16c], 0
mov dword [ebx + 0x38], eax
lea eax, [ebx + 0x60]
mov dword [ebx + 0x3c], ecx
lea ecx, [ebx + 0x40]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
je 0x5752f4
push eax
push ecx
call edx
mov edx, dword [esp + 0x2c]
add esp, 8
mov dword [ebx + 0x16c], 0
jmp 0x5752fc
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x168]
mov dword [esp + 0x24], ecx
push ebp
mov ebp, dword [esp + 0x2c]
bswap eax
mov dword [esp + 0x34], eax
push edi
mov edi, dword [esp + 0x34]
test ecx, ecx
je 0x575369
nop dword [eax]
test esi, esi
je 0x575359
mov al, byte [ecx + ebx + 0x10]
dec esi
xor al, byte [ebp]
inc ebp
mov byte [edi], al
inc edi
xor byte [ecx + ebx + 0x40], al
inc ecx
and ecx, 0xf
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], ecx
jne 0x575320
lea eax, [ebx + 0x60]
lea ecx, [ebx + 0x40]
push eax
push ecx
call edx
mov eax, dword [esp + 0x34]
add esp, 8
mov dword [esp + 0x2c], eax
jmp 0x57536d
pop edi
pop ebp
pop esi
mov dword [ebx + 0x168], ecx
xor eax, eax
pop ebx
add esp, 0x18
ret
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x3c]
cmp esi, 0xc00
jb 0x5753e6
mov eax, 0xaaaaaaab
mul esi
shr edx, 0xb
mov dword [esp + 0x10], edx
nop word [eax + eax]
push ebx
push dword [esp + 0x20]
push 0xc0
push edi
push ebp
call ecx
mov eax, dword [esp + 0x4c]
push 0xc00
push edi
push dword [esp + 0x30]
add eax, 0xc0
push dword [esp + 0x38]
mov dword [esp + 0x5c], eax
bswap eax
mov dword [ebx + 0xc], eax
call dword [esp + 0x44]
mov ecx, dword [esp + 0x60]
add esp, 0x24
add edi, 0xc00
add ebp, 0xc00
sub esi, 0xc00
sub dword [esp + 0x10], 1
jne 0x575390
mov dword [esp + 0x10], edi
mov eax, esi
and eax, 0xfffffff0
mov dword [esp + 0x24], eax
je 0x575433
push ebx
push dword [esp + 0x20]
mov edi, eax
shr edi, 4
push edi
push dword [esp + 0x1c]
push ebp
call ecx
mov eax, dword [esp + 0x4c]
add eax, edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x4c], eax
bswap eax
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x38]
add ebp, eax
push eax
push edi
push dword [esp + 0x30]
sub esi, eax
push dword [esp + 0x38]
call dword [esp + 0x44]
add esp, 0x24
add edi, dword [esp + 0x24]
test esi, esi
je 0x575487
push dword [esp + 0x1c]
lea eax, [ebx + 0x10]
push eax
mov eax, dword [ebx + 0x170]
push ebx
call eax
mov eax, dword [esp + 0x44]
lea ecx, [ebx + 0x40]
inc eax
add esp, 0xc
bswap eax
mov dword [ebx + 0xc], eax
sub ebp, edi
mov eax, dword [esp + 0x2c]
add ecx, eax
lea edx, [eax + edi]
add eax, esi
mov dword [esp + 0x2c], eax
nop dword [eax]
mov al, byte [edx + ebp]
lea edx, [edx + 1]
xor al, byte [ecx - 0x30]
lea ecx, [ecx + 1]
mov byte [edx - 1], al
xor byte [ecx - 1], al
sub esi, 1
jne 0x575470
mov eax, dword [esp + 0x2c]
pop edi
pop ebp
mov dword [ebx + 0x168], eax
xor eax, eax
pop esi
pop ebx
add esp, 0x18
ret
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret