Function at 0x5c2300
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 + 0x20], edx
adc ecx, dword [esi + 0x3c]
cmp ecx, 0xf
ja 0x5c2588
jb 0x5c235a
cmp eax, 0xffffffe0
ja 0x5c2588
cmp dword [esi + 0x16c], 0
mov dword [esi + 0x38], eax
lea eax, [esi + 0x40]
mov dword [esi + 0x3c], ecx
lea ecx, [esi + 0x60]
mov dword [esp + 0x10], eax
je 0x5c2386
push ecx
push eax
call edx
add esp, 8
mov dword [esi + 0x16c], 0
jmp 0x5c238a
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x168]
mov dword [esp + 8], edx
push ebx
mov ebx, dword [esp + 0x38]
bswap eax
mov dword [esp + 0x10], eax
push edi
mov edi, dword [esp + 0x38]
test edx, edx
je 0x5c23ee
nop dword [eax + eax]
test ebp, ebp
je 0x5c2578
mov cl, byte [edi]
dec ebp
mov al, byte [edx + esi + 0x10]
inc edi
xor al, cl
mov byte [ebx], al
inc ebx
xor byte [edx + esi + 0x40], cl
inc edx
and edx, 0xf
mov dword [esp + 0x10], edx
jne 0x5c23b0
lea ecx, [esi + 0x60]
lea eax, [esi + 0x40]
push ecx
push eax
call dword [esp + 0x30]
mov eax, dword [esp + 0x18]
add esp, 8
mov dword [esp + 0x10], eax
mov dword [esp + 0x40], ebp
cmp ebp, 0xc00
jb 0x5c2495
mov eax, 0xaaaaaaab
mul ebp
shr edx, 0xb
mov dword [esp + 0x28], edx
nop dword [eax + eax]
push 0xc00
push edi
lea eax, [esi + 0x60]
push eax
push dword [esp + 0x24]
call dword [esp + 0x3c]
mov ebp, dword [esp + 0x24]
add esp, 0x10
mov dword [esp + 0x24], 0xc0
push dword [esp + 0x1c]
lea eax, [esi + 0x10]
push eax
push esi
call dword [esp + 0x2c]
inc ebp
add esp, 0xc
mov eax, ebp
bswap eax
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x10]
xor eax, dword [edi]
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 0x5c2431
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x40]
sub ebp, 0xc00
sub dword [esp + 0x28], 1
mov dword [esp + 0x40], ebp
jne 0x5c2410
mov eax, ebp
and eax, 0xfffffff0
je 0x5c250f
push eax
push edi
lea eax, [esi + 0x60]
push eax
push dword [esp + 0x24]
call dword [esp + 0x3c]
add esp, 0x10
cmp ebp, 0x10
jb 0x5c250f
mov eax, ebp
lea ecx, [esi + 0x10]
shr eax, 4
mov dword [esp + 0x40], eax
nop
push dword [esp + 0x1c]
push ecx
push esi
call dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
lea ecx, [esi + 0x10]
inc eax
add esp, 0xc
mov dword [esp + 0x14], eax
sub ebp, 0x10
bswap eax
mov dword [esi + 0xc], eax
mov eax, dword [ecx]
xor eax, dword [edi]
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 0x5c24c0
test ebp, ebp
je 0x5c2564
push dword [esp + 0x1c]
lea eax, [esi + 0x10]
push eax
push esi
call dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
lea edx, [esi + 0x40]
mov eax, dword [esp + 0x20]
add esp, 0xc
inc eax
add edx, ecx
bswap eax
mov dword [esi + 0xc], eax
sub edi, ebx
lea eax, [ecx + ebx]
add ecx, ebp
mov dword [esp + 0x40], eax
mov esi, eax
mov dword [esp + 0x10], ecx
mov cl, byte [edi + esi]
lea edx, [edx + 1]
mov al, byte [edx - 0x31]
lea esi, [esi + 1]
xor byte [edx - 1], cl
xor al, cl
mov byte [esi - 1], al
sub ebp, 1
jne 0x5c2547
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x10]
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], edx
xor eax, eax
pop esi
pop ebp
add esp, 0x20
ret
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x20
ret