Function at 0x5944dd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push ebx
mov ebx, dword [ebp + 8]
xorps xmm0, xmm0
push esi
push edi
push 0
push eax
push 0x1b
push ebx
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x50], xmm0
call fcn.00598119
mov esi, eax
add esp, 0x10
xor eax, eax
mov dword [ebp - 0x24], esi
inc eax
mov dword [ebp - 0x3c], eax
test esi, esi
jne 0x594596
push dword [ebx + 0xf8]
mov edi, dword [ebp - 0xc]
push eax
push edi
call fcn.00583231
mov eax, dword [ebp - 0x44]
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x18], eax
push edi
call fcn.00583b80
pop ecx
cmp eax, 0x64
jne 0x59458d
push 0
push edi
call fcn.005840ac
and dword [ebp - 0x38], 0
cmp dword [ebx + 0xf8], 0
pop ecx
pop ecx
mov dword [ebp - 0x34], eax
jle 0x594589
mov edi, dword [ebp - 0x38]
lea ecx, [ebp - 0x24]
push ecx
push edi
push eax
push ebx
call fcn.0058fd78
xor dword [ebp - 0x18], eax
add esp, 0x10
xor dword [ebp - 0x1c], edx
inc edi
mov eax, dword [ebp - 0x34]
cmp edi, dword [ebx + 0xf8]
jl 0x594562
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0xc]
test esi, esi
je 0x594539
push edi
call fcn.0057b5fb
pop ecx
jmp 0x5945a2
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x1b
push ebx
call fcn.00598119
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x5947ba
mov eax, dword [ebx + 0x24]
push dword [ebx + 0xd8]
push str.SELECT__s
mov eax, dword [eax]
and dword [ebp - 4], esi
mov dword [ebp - 0x38], eax
call fcn.005811fc
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x5945ee
push 7
pop esi
mov edi, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x50]
jmp 0x5947af
push 0
lea eax, [ebp - 4]
push eax
push 0
push 1
push 0xffffffffffffffff
push edi
push dword [ebx + 0xc]
call fcn.005b5c34
push edi
mov esi, eax
call fcn.0058143e
add esp, 0x20
test esi, esi
jne 0x5945e3
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
call fcn.00583b80
pop ecx
cmp eax, 0x64
jne 0x5947a9
push 0
push dword [ebp - 4]
call fcn.005840d3
push dword [ebp - 4]
mov dword [ebp - 0x2c], eax
push ebx
mov dword [ebp - 0x28], edx
call fcn.0059b60a
xor ecx, ecx
mov dword [ebp - 0x24], eax
add esp, 0x10
mov dword [ebp - 0x14], ecx
test esi, esi
jne 0x5947a9
cmp ecx, dword [ebx + 0x18]
jge 0x5947a1
mov eax, dword [ebx + 0x20]
cmp byte [ecx + eax], 0
jne 0x594795
lea esi, [ecx + 1]
push esi
push dword [ebp - 4]
call fcn.0057b09a
push esi
push dword [ebp - 4]
mov edi, eax
call fcn.00583dfb
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
push eax
push edi
push dword [ebp - 0x24]
push dword [ebx + 0x24]
call fcn.005b14a5
mov esi, eax
add esp, 0x24
test esi, esi
jne 0x59477a
mov edi, dword [ebp - 0xc]
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x38]
push dword [ebp - 0x10]
call dword [eax + 0x14]
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x594777
push dword [ebp - 0x20]
push dword [ebp - 0x14]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0xc]
push dword [ebp - 0x30]
call fcn.0058fcda
mov esi, dword [ebp - 8]
xor edi, eax
xor eax, eax
xor esi, edx
mov edx, dword [ebx + 0xf8]
inc eax
add esp, 0x20
mov dword [ebp - 8], esi
mov dword [ebp - 0x4c], edx
mov ecx, eax
mov dword [ebp - 0x34], ecx
cmp edx, eax
jle 0x5946ae
mov eax, dword [ebx + 0xfc]
mov ebx, dword [ebp - 0x14]
add eax, 0x18
mov dword [ebp - 8], eax
mov edx, dword [eax]
cmp edx, dword [ebp - 0xc]
jg 0x59475d
push dword [ebp - 0x20]
push ebx
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push ecx
push dword [ebp - 0x24]
push edx
push dword [ebp - 0x30]
call fcn.0058fcda
mov ecx, dword [ebp - 0x34]
xor edi, eax
mov eax, dword [ebp - 8]
add esp, 0x20
xor esi, edx
inc ecx
add eax, 0x18
mov dword [ebp - 0x34], ecx
mov dword [ebp - 8], eax
cmp ecx, dword [ebp - 0x4c]
jl 0x594732
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], esi
jmp 0x5946ae
mov dword [ebp - 0xc], edi
cmp dword [ebp - 0x10], 0
je 0x59478a
mov eax, dword [ebp - 0x38]
push dword [ebp - 0x10]
call dword [eax + 0x10]
pop ecx
mov ecx, dword [ebp - 0x14]
xor eax, eax
cmp esi, 0x65
cmove esi, eax
inc ecx
mov dword [ebp - 0x14], ecx
test esi, esi
je 0x59465c
test esi, esi
je 0x59461e
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.0057b5af
pop ecx
jmp 0x5947c0
mov edi, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x50]
cmp dword [ebp - 0x18], ebx
jne 0x5947ca
cmp dword [ebp - 0x1c], edi
je 0x5947ce
and dword [ebp - 0x3c], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x3c]
pop edi
mov dword [eax], ecx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret