Function at 0x57ee43
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x57ee60
cmp dword [ebx + 0x2c], 0
jne 0x57ee65
mov edi, ebx
mov dword [ebp + 0xc], edi
cmp dword [edi + 0x1c], ebx
je 0x57ee6d
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0x40
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
mov dword [ebx + 0x2e4], 0
mov dword [ebx + 0x2e8], 0
mov dword [ebp - 0x10], 0x40
call fcn.0057b623
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
test esi, esi
jne 0x57eec3
push 0x660558
call fcn.0057dd03
add esp, 4
xor eax, eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x3c]
push edi
push ebx
mov dword [ebp - 4], esi
call eax
add esp, 8
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x2f0]
push ebx
call eax
mov edi, dword [ebp + 8]
add esp, 4
mov dword [ebp - 0x1c], eax
cmp esi, edi
jbe 0x57f001
cmp eax, 0x3c
je 0x57eefb
cmp eax, 0xffffffff
jne 0x57f00a
mov edi, dword [ebp - 0x14]
mov byte [esi], 0
cmp edi, 2
je 0x57ef0b
cmp edi, 0xffffffff
jne 0x57ef19
push dword [ebp + 8]
call fcn.0057d083
add esp, 4
mov dword [ebp - 4], eax
push dword [ebp + 8]
xor esi, esi
call fcn.0057c433
add esp, 4
test eax, eax
je 0x57eff0
mov eax, edi
sub eax, 1
je 0x57ef9e
sub eax, 1
je 0x57ef82
sub eax, 1
jne 0x57eff0
cmp dword [ebx + 0x44], esi
je 0x57f5f0
mov edi, dword [ebp - 8]
mov dword [edi + 0x18], 3
push dword [ebp + 8]
mov eax, dword [ebx + 0x44]
push edi
push ebx
call eax
add esp, 0xc
test eax, eax
jne 0x57eff0
push dword [edi]
push dword [ebp + 8]
push 0x6605a0
call fcn.0057dd03
add esp, 0xc
jmp 0x57f72f
mov edi, dword [ebp - 8]
push 1
mov dword [edi + 0x18], 2
push dword [ebp + 8]
push edi
call fcn.00580723
add esp, 0xc
test eax, eax
jmp 0x57efea
cmp dword [ebx + 0x2e8], esi
je 0x57efd5
push dword [ebp + 8]
call fcn.0057c6b3
mov edi, dword [ebp - 8]
add esp, 4
cmp byte [eax], 0
je 0x57efd8
cmp dword [edi + 0x18], esi
jne 0x57efd8
mov dword [edi + 0x18], 1
push dword [ebp + 8]
push edi
call fcn.0057eb93
add esp, 8
test eax, eax
jmp 0x57efea
mov edi, dword [ebp - 8]
push dword [ebp + 8]
push 0
push edi
call fcn.0057eb33
mov esi, eax
add esp, 0xc
test esi, esi
je 0x57f602
mov eax, dword [ebp - 0xc]
test eax, eax
mov edi, dword [ebp + 8]
cmove eax, esi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
cmp eax, 0xffffffff
je 0x57f701
cmp eax, 0x3c
jne 0x57f5b1
mov eax, dword [ebx + 0x2f0]
push ebx
mov dword [ebp - 4], edi
call eax
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x57f13c
nop word [eax + eax]
push esi
call fcn.0057d653
add esp, 4
test eax, eax
jne 0x57f13c
cmp esi, 0x3e
je 0x57f13c
cmp esi, 0x2f
jne 0x57f05d
cmp edi, dword [ebp + 8]
ja 0x57f13c
jmp 0x57f0bd
cmp esi, 0x3c
je 0x57f61a
cmp esi, 0x26
jne 0x57f0a5
push dword [ebp - 8]
push ebx
call fcn.0057fbf3
add esp, 8
cmp eax, 0xffffffff
je 0x57f72f
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.0057ed23
add esp, 0x10
test eax, eax
je 0x57f72f
mov edi, dword [ebp - 4]
jmp 0x57f125
cmp esi, 0x30
jge 0x57f0bd
cmp esi, 0x21
je 0x57f0bd
cmp esi, 0x2d
je 0x57f0bd
cmp esi, 0x2e
jne 0x57f72f
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
call fcn.0057ed23
add esp, 0x10
test eax, eax
je 0x57f72f
mov edi, dword [ebp - 4]
mov eax, edi
mov ecx, dword [ebp + 8]
sub eax, ecx
cmp eax, 1
jne 0x57f0ee
cmp byte [ecx], 0x3f
je 0x57f13c
cmp eax, 3
jne 0x57f109
push eax
push 0x660610
push ecx
call 0x77bb93
add esp, 0xc
test eax, eax
je 0x57f13c
mov ecx, dword [ebp + 8]
mov eax, edi
sub eax, ecx
cmp eax, 8
jne 0x57f125
push eax
push 0x6602cc
push ecx
call 0x77bb93
add esp, 0xffffff87
xchg edx, eax
push 0x96a281c2
xor dh, byte [ebp - 0x1e590841]
idiv dword [eax]
mov byte [0xbfb53296], al
mul dword [esi + 0x38f7f2e1]
add al, 0x51
add byte [edi], ah
xor bl, byte [eax + 0x57525722]
sub dword [edi], edi
aas
and byte [edi - 0x7e], 0xc5
or ebp, 0xfffffff6
cmpsd dword [esi], dword es:[edi]
xchg ebp, eax
xor eax, 0xb2d3c6ba
fst qword [edi]
invalid
loop 0x57f5c7
mov esp, 0x19272ce9
inc edi
mov dword fs:[0x4f327924], eax
mov edx, 0x821c1fc7
cmpsd dword [esi], dword es:[edi]
shl dword [eax + 0x43449680], 0x22
fild qword [esi]
adc byte [esi - 0x20ddbcbc], 0x2e
sbb esp, 0xdd1ac301
ljmp 0x9d52
fdiv st(4)
pop ss
mov ebx, 0xa9b7626a
sub al, 0xe2
dec edx
adc ch, byte [esi - 0x3e]
dec edi
mov ah, byte [0xf280dc86]
mov dl, 0x5f
xor byte [ebp + 0x53], dl
fadd qword [eax + 0x305fb2f2]
push ebp
push ebx
pop ss
adc dh, dl
cli
in al, 0x63
sub byte [edx], dl
dec edx
push ebx
mov al, byte [0x45e71ece]
pop esi
aaa
leave
ja 0x57f671
mov eax, 0x90540610
salc
xchg edi, eax
shl ebx, cl
ret
adc ch, byte [edx - 0x2d920134]
add dl, byte [0x25365a5e]
mov esi, 0x7c27d157
adc ah, byte [edx - 0x15ca554e]
mov eax, dword [0x686b0f90]
ret 0x4bca
sub dword [ebp - 0x49], 0xb
xchg esi, eax
fidivr dword [edx + 0x79]
nop
aam 0xd3
push esi
out dx, eax
cli
das
adc byte [edi], ch
lcall 0xa875, 0xa4fbcb3
ljmp 0x8c54
invalid
push 0xffffffffffffffc5
jl 0x57f6c1
mov bh, 0x89
fisubr dword [esi]
lahf
push ebp
nop
pop ebx
invalid