Function at 0x577a80
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x683f7c]
sub esp, 0x88
test eax, eax
je 0x577aa6
call fcn.0057a8f0
cmp dword [0x683f80], eax
jne 0x577aa6
mov dword [esp + 4], 1
jmp 0x577ac4
push 0xd7
push str.md_rand.c
push 0x11
push 9
mov dword [esp + 0x14], 0
call fcn.0057a910
add esp, 0x10
mov ecx, dword [0x683f68]
mov eax, dword [0x683f64]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], ecx
mov ebx, dword [0x683f6c]
mov ecx, 5
mov esi, 0x683f4c
lea edi, [esp + 0x24]
mov ebp, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0xa0]
mov dword [esp + 0x20], ebx
add eax, esi
cmp eax, 0x3ff
mov dword [0x683f64], eax
jl 0x577b1e
cdq
mov ecx, 0x3ff
idiv ecx
mov dword [0x683f60], ecx
mov dword [0x683f64], edx
jmp 0x577b35
mov ecx, dword [0x683f60]
cmp ecx, 0x3ff
jge 0x577b35
cmp eax, ecx
jle 0x577b35
mov dword [0x683f60], eax
mov eax, esi
mov ecx, 0x14
cdq
idiv ecx
xor ecx, ecx
mov eax, 0x66666667
test edx, edx
setg cl
imul esi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x14]
add edx, ebx
add edx, ecx
test eax, eax
mov dword [0x683f6c], edx
jne 0x577b7f
push 0xf7
push str.md_rand.c
push 0x11
push 0xa
call fcn.0057a910
add esp, 0x10
test esi, esi
jle 0x577c9c
mov ecx, esi
add esi, 0x13
mov eax, 0xcccccccd
mov ebx, dword [esp + 0x9c]
mul esi
shr edx, 4
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], edx
jmp 0x577bab
mov ecx, dword [esp + 0x10]
cmp ecx, 0x14
mov esi, ecx
jle 0x577bb7
mov esi, 0x14
lea ecx, [esp + 0x38]
push ecx
call fcn.0057b6c0
lea edx, [esp + 0x28]
push 0x14
lea eax, [esp + 0x40]
push edx
push eax
call fcn.0057b290
lea edi, [esi + ebp - 0x3ff]
add esp, 0x10
test edi, edi
jle 0x577c0b
mov ecx, esi
lea edx, [ebp + 0x683b38]
sub ecx, edi
lea eax, [esp + 0x38]
push ecx
push edx
push eax
call fcn.0057b290
push edi
lea ecx, [esp + 0x48]
push 0x683b38
push ecx
call fcn.0057b290
add esp, 0x18
jmp 0x577c20
lea edx, [ebp + 0x683b38]
push esi
lea eax, [esp + 0x3c]
push edx
push eax
call fcn.0057b290
add esp, 0xc
push esi
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.0057b290
lea edx, [esp + 0x28]
push 8
lea eax, [esp + 0x48]
push edx
push eax
call fcn.0057b290
lea ecx, [esp + 0x50]
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.0057b560
mov edi, dword [esp + 0x40]
add esp, 0x20
inc edi
add ebx, esi
xor eax, eax
mov dword [esp + 0x20], edi
test esi, esi
jle 0x577c82
mov cl, byte [esp + eax + 0x24]
mov dl, byte [ebp + 0x683b38]
xor dl, cl
mov byte [ebp + 0x683b38], dl
inc ebp
cmp ebp, 0x3ff
jl 0x577c7d
xor ebp, ebp
inc eax
cmp eax, esi
jl 0x577c60
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
sub ecx, 0x14
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
jne 0x577ba7
mov esi, dword [esp + 0x14]
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x38]
test esi, esi
rep stosd dword es:[edi], eax
jne 0x577cc7
push 0x121
push str.md_rand.c
push 0x11
push 9
call fcn.0057a910
add esp, 0x10
xor eax, eax
mov dl, byte [esp + eax + 0x24]
mov bl, byte [eax + 0x683f4c]
xor bl, dl
mov byte [eax + 0x683f4c], bl
inc eax
cmp eax, 0x14
jb 0x577cc9
fld qword [0x683f70]
fcomp qword [0x624d70]
fnstsw ax
test ah, 1
je 0x577d07
fld qword [0x683f70]
fadd qword [esp + 0xa4]
fstp qword [0x683f70]
pop edi
test esi, esi
pop esi
pop ebp
pop ebx
jne 0x577d25
push 0x12c
push str.md_rand.c
push 0x11
push 0xa
call fcn.0057a910
add esp, 0x10
add esp, 0x88
ret