Function at 0x5a7d93
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
push edi
lea eax, [ecx + 0x124]
xorps xmm0, xmm0
push 0x10
push eax
lea eax, [esp + 0x38]
movlpd qword [esp + 0x18], xmm0
push eax
mov ebx, edx
movlpd qword [esp + 0x24], xmm0
call fcn.005b6ab9
pop ecx
pop ecx
lea edx, [esp + 0x34]
mov ecx, edx
call fcn.005a6f3a
mov ebp, dword [esp + 0x48]
xor eax, eax
pop ecx
test ebp, ebp
je 0x5a7e9d
test ebx, ebx
je 0x5a7e9d
mov esi, ebp
mov edi, ebp
shr esi, 4
and edi, 0xf
test esi, esi
je 0x5a7e42
push 0x10
lea eax, [esp + 0x24]
push ebx
push eax
call fcn.005b6ab9
pop ecx
pop ecx
lea edx, [esp + 0x24]
mov ecx, edx
call fcn.005a6f3a
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x34]
xor dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
xor dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
xor dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
xor dword [esp + 0x20], eax
pop ecx
lea ecx, [esp + 0x10]
call fcn.005a7c2a
add ebx, 0x10
sub esi, 1
jne 0x5a7df0
xor eax, eax
test edi, edi
je 0x5a7e9d
push 0x10
push eax
lea eax, [esp + 0x28]
push eax
call fcn.005b7039
add esp, 0xc
lea eax, [esp + 0x20]
push edi
push ebx
push eax
call fcn.005b6ab9
pop ecx
pop ecx
lea edx, [esp + 0x24]
mov ecx, edx
call fcn.005a6f3a
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x34]
xor dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
xor dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
xor dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
xor dword [esp + 0x20], eax
pop ecx
lea ecx, [esp + 0x10]
call fcn.005a7c2a
mov edi, dword [esp + 0x4c]
test edi, edi
je 0x5a7f73
mov ebx, dword [esp + 0x48]
test ebx, ebx
je 0x5a7f73
mov esi, edi
mov ebp, edi
shr esi, 4
and ebp, 0xf
test esi, esi
je 0x5a7f13
push 0x10
lea eax, [esp + 0x24]
push ebx
push eax
call fcn.005b6ab9
pop ecx
pop ecx
lea edx, [esp + 0x24]
mov ecx, edx
call fcn.005a6f3a
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x34]
xor dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
xor dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
xor dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
xor dword [esp + 0x20], eax
pop ecx
lea ecx, [esp + 0x10]
call fcn.005a7c2a
add ebx, 0x10
sub esi, 1
jne 0x5a7ec3
test ebp, ebp
je 0x5a7f6f
push 0x10
lea eax, [esp + 0x24]
push 0
push eax
call fcn.005b7039
add esp, 0xc
lea eax, [esp + 0x20]
push ebp
push ebx
push eax
call fcn.005b6ab9
pop ecx
pop ecx
lea edx, [esp + 0x24]
mov ecx, edx
call fcn.005a6f3a
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x34]
xor dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
xor dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
xor dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
xor dword [esp + 0x20], eax
pop ecx
lea ecx, [esp + 0x10]
call fcn.005a7c2a
mov ebp, dword [esp + 0x44]
xor ecx, ecx
lea edx, [esp + 0x30]
mov eax, ecx
shld ecx, edi, 3
shld eax, ebp, 3
xor dword [esp + 0x1c], ecx
lea ecx, [esp + 0x10]
xor dword [esp + 0x14], eax
shl ebp, 3
xor dword [esp + 0x10], ebp
shl edi, 3
xor dword [esp + 0x18], edi
call fcn.005a7c2a
lea edx, [esp + 0x10]
push ecx
mov ecx, edx
call fcn.005a6f3a
pop ecx
push dword [esp + 0x54]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x58]
call fcn.005b6ab9
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret