Function at 0x5a1b20
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x6fea04]
sub esp, 0x40
test eax, eax
push ebp
je 0x5a1c10
lea eax, [esp + 8]
push eax
call fcn.0059dfd0
push 0xda
push 0x699318
push 0x13
push 5
call fcn.0059e280
lea ecx, [esp + 0x1c]
push ecx
push 0x6fe5b8
call fcn.0059e020
mov ebp, eax
push 0xdc
neg ebp
push 0x699318
sbb ebp, ebp
push 0x13
inc ebp
push 6
mov dword [esp + 0x30], ebp
call fcn.0059e280
add esp, 0x2c
test ebp, ebp
jne 0x5a1b98
push 0xe1
push 0x699318
push 0x12
push 9
call fcn.0059e280
add esp, 0x10
mov edx, dword [0x6fe9f0]
mov ecx, dword [0x6fe9f4]
mov eax, dword [0x6fe9ec]
mov dword [esp + 0x10], edx
mov edx, dword [0x6fe9d4]
push ebx
push esi
mov esi, dword [esp + 0x54]
mov dword [esp + 0x1c], ecx
mov ecx, dword [0x6fe9d8]
mov dword [esp + 0x20], edx
mov edx, dword [0x6fe9dc]
push edi
mov edi, eax
add eax, esi
cmp eax, 0x3ff
mov dword [esp + 0x28], ecx
mov ecx, dword [0x6fe9e0]
mov dword [esp + 0x2c], edx
mov edx, dword [0x6fe9e4]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov dword [0x6fe9ec], eax
jl 0x5a1c21
cdq
mov ecx, 0x3ff
idiv ecx
mov dword [0x6fe9e8], ecx
mov dword [0x6fe9ec], edx
jmp 0x5a1c38
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x5a1b82
mov ecx, dword [0x6fe9e8]
cmp ecx, 0x3ff
jge 0x5a1c38
cmp eax, ecx
jle 0x5a1c38
mov dword [0x6fe9e8], eax
mov eax, esi
cdq
mov ecx, 0x14
idiv ecx
xor ecx, ecx
test edx, edx
mov edx, dword [0x6fe9f4]
setg cl
add ecx, eax
add edx, ecx
test ebp, ebp
mov dword [0x6fe9f4], edx
jne 0x5a1c73
push 0x101
push 0x699318
push 0x12
push 0xa
call fcn.0059e280
add esp, 0x10
lea edx, [esp + 0x38]
push edx
call fcn.005a55f0
add esp, 4
test esi, esi
jle 0x5a1da0
mov ebp, dword [esp + 0x54]
mov ecx, esi
dec esi
mov eax, 0xcccccccd
mul esi
shr edx, 4
inc edx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x14], edx
jmp 0x5a1ca8
mov ecx, dword [esp + 0x58]
cmp ecx, 0x14
mov esi, ecx
jle 0x5a1cb4
mov esi, 0x14
push 0
call fcn.005a5c10
push eax
lea eax, [esp + 0x40]
push eax
call fcn.005a5640
push 0x14
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.005a57f0
lea ebx, [esi + edi - 0x3ff]
add esp, 0x18
test ebx, ebx
lea edx, [esp + 0x38]
lea ecx, [edi + 0x6fe5c0]
jle 0x5a1d10
mov eax, esi
sub eax, ebx
push eax
push ecx
push edx
call fcn.005a57f0
push ebx
lea eax, [esp + 0x48]
push 0x6fe5c0
push eax
call fcn.005a57f0
add esp, 0x18
jmp 0x5a1d1b
push esi
push ecx
push edx
call fcn.005a57f0
add esp, 0xc
push esi
lea eax, [esp + 0x3c]
push ebp
push eax
call fcn.005a57f0
push 8
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.005a57f0
push 0
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x58]
push ecx
call fcn.005a5800
mov ebx, dword [esp + 0x44]
add esp, 0x24
inc ebx
add ebp, esi
xor eax, eax
test esi, esi
mov dword [esp + 0x20], ebx
jle 0x5a1d82
lea ecx, [ecx]
mov bl, byte [edi + 0x6fe5c0]
mov dl, byte [esp + eax + 0x24]
xor bl, dl
mov byte [edi + 0x6fe5c0], bl
inc edi
cmp edi, 0x3ff
jl 0x5a1d7d
xor edi, edi
inc eax
cmp eax, esi
jl 0x5a1d60
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x14]
sub ecx, 0x14
dec eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x14], eax
jne 0x5a1ca4
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x38]
push eax
call fcn.005a5880
add esp, 4
test ebp, ebp
jne 0x5a1dc7
push 0x134
push 0x699318
push 0x12
push 9
call fcn.0059e280
add esp, 0x10
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x24]
mov dl, byte [eax + 0x6fe9d4]
mov bl, byte [eax + 0x6fe9d5]
xor dl, cl
mov cl, byte [esp + eax + 0x26]
mov byte [eax + 0x6fe9d4], dl
mov dl, byte [esp + eax + 0x25]
xor bl, dl
mov dl, byte [eax + 0x6fe9d6]
xor dl, cl
mov cl, byte [eax + 0x6fe9d7]
mov byte [eax + 0x6fe9d6], dl
mov dl, byte [esp + eax + 0x27]
xor cl, dl
mov byte [eax + 0x6fe9d5], bl
mov bl, byte [eax + 0x6fe9d8]
mov byte [eax + 0x6fe9d7], cl
mov cl, byte [esp + eax + 0x28]
xor bl, cl
mov byte [eax + 0x6fe9d8], bl
add eax, 5
cmp eax, 0x14
jl 0x5a1dd0
fld qword [0x6fe9f8]
pop edi
fcomp qword [0x699310]
pop esi
pop ebx
fnstsw ax
test ah, 5
jp 0x5a1e58
fld qword [0x6fe9f8]
fadd qword [esp + 0x50]
fstp qword [0x6fe9f8]
test ebp, ebp
pop ebp
jne 0x5a1e73
push 0x13f
push 0x699318
push 0x12
push 0xa
call fcn.0059e280
add esp, 0x10
add esp, 0x40
ret