Function at 0x5c27c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x20
call fcn.004ed3f0
push ebp
mov ebp, dword [esp + 0x34]
xor ecx, ecx
push esi
mov esi, dword [esp + 0x2c]
mov eax, dword [esi + 0x170]
mov edx, dword [esi + 0x160]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x174]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x164]
mov dword [esp + 0x24], eax
mov eax, ebp
add eax, dword [esi + 0x38]
mov dword [esp + 0x2c], edx
adc ecx, dword [esi + 0x3c]
cmp ecx, 0xf
ja 0x5c2a5b
jb 0x5c281a
cmp eax, 0xffffffe0
ja 0x5c2a5b
cmp dword [esi + 0x16c], 0
mov dword [esi + 0x38], eax
lea eax, [esi + 0x60]
mov dword [esi + 0x3c], ecx
lea ecx, [esi + 0x40]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
je 0x5c284e
push eax
push ecx
call edx
mov edx, dword [esp + 0x34]
add esp, 8
mov dword [esi + 0x16c], 0
jmp 0x5c2856
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x168]
mov dword [esp + 0x2c], ecx
push ebx
mov ebx, dword [esp + 0x38]
bswap eax
mov dword [esp + 0xc], eax
push edi
mov edi, dword [esp + 0x38]
test ecx, ecx
je 0x5c28b1
test ebp, ebp
je 0x5c2a4b
mov al, byte [ecx + esi + 0x10]
dec ebp
xor al, byte [edi]
inc edi
mov byte [ebx], al
inc ebx
xor byte [ecx + esi + 0x40], al
inc ecx
and ecx, 0xf
mov dword [esp + 0x34], ecx
jne 0x5c2877
lea eax, [esi + 0x60]
lea ecx, [esi + 0x40]
push eax
push ecx
call edx
mov eax, dword [esp + 0x3c]
add esp, 8
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], ebp
cmp ebp, 0xc00
jb 0x5c2961
mov eax, 0xaaaaaaab
lea ecx, [esi + 0x10]
mul ebp
shr edx, 0xb
mov dword [esp + 0x28], edx
nop
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x24], 0xc0
nop dword [eax]
push dword [esp + 0x1c]
push ecx
push esi
call dword [esp + 0x2c]
inc ebp
lea ecx, [esi + 0x10]
mov eax, ebp
add esp, 0xc
bswap eax
mov dword [esi + 0xc], eax
mov eax, dword [edi]
xor eax, dword [ecx]
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 + 0x24], 1
jne 0x5c28e0
push 0xc00
lea eax, [ebx - 0xc00]
mov dword [esp + 0x14], ebp
push eax
push dword [esp + 0x1c]
push dword [esp + 0x24]
call dword [esp + 0x3c]
mov ebp, dword [esp + 0x50]
lea ecx, [esi + 0x10]
sub ebp, 0xc00
add esp, 0x10
sub dword [esp + 0x28], 1
mov dword [esp + 0x40], ebp
jne 0x5c28d0
mov ecx, ebp
and ecx, 0xfffffff0
mov dword [esp + 0x28], ecx
je 0x5c29e9
cmp ebp, 0x10
jb 0x5c29d4
mov eax, ebp
lea ecx, [esi + 0x10]
shr eax, 4
mov dword [esp + 0x40], eax
push dword [esp + 0x1c]
push ecx
push esi
call dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
lea ecx, [esi + 0x10]
inc eax
add esp, 0xc
mov dword [esp + 0x10], eax
sub ebp, 0x10
bswap eax
mov dword [esi + 0xc], eax
mov eax, dword [edi]
xor eax, dword [ecx]
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 + 0x40], 1
jne 0x5c2981
mov ecx, dword [esp + 0x28]
push ecx
mov eax, ebx
sub eax, ecx
push eax
push dword [esp + 0x1c]
push dword [esp + 0x24]
call dword [esp + 0x3c]
add esp, 0x10
test ebp, ebp
je 0x5c2a37
push dword [esp + 0x1c]
lea eax, [esi + 0x10]
push eax
push esi
call dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
lea ecx, [esi + 0x40]
inc eax
add esp, 0xc
bswap eax
mov dword [esi + 0xc], eax
sub edi, ebx
mov eax, dword [esp + 0x34]
add ecx, eax
lea edx, [eax + ebx]
add eax, ebp
mov dword [esp + 0x34], eax
nop dword [eax + eax]
mov al, byte [edi + edx]
lea edx, [edx + 1]
xor al, byte [ecx - 0x30]
lea ecx, [ecx + 1]
mov byte [edx - 1], al
xor byte [ecx - 1], al
sub ebp, 1
jne 0x5c2a20
mov eax, dword [esp + 0x34]
pop edi
pop ebx
mov dword [esi + 0x168], eax
xor eax, eax
pop esi
pop ebp
add esp, 0x20
ret
pop edi
pop ebx
mov dword [esi + 0x168], ecx
xor eax, eax
pop esi
pop ebp
add esp, 0x20
ret
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x20
ret