Function at 0x408590
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x34
mov esi, 1
mov ebp, 2
xor eax, eax
mov edx, dword [esp + 0x48]
jmp 0x4085b3
inc esi
inc ebp
inc eax
mov ch, byte [edx + eax]
movzx edi, ch
lea ebx, [edi - 9]
cmp ebx, 5
jb 0x4085b0
cmp edi, 0x20
je 0x4085b0
mov dword [esp + 0x1c], ebp
mov byte [esp + 7], ch
add ch, 0xd5
xor ebx, ebx
test ch, 0xfd
sete bl
add ebx, edx
mov dword [esp + 0x10], ebx
xor ebp, ebp
mov ebx, 0xffffffff
jmp 0x4085f7
mov edi, ebx
mov ebp, ecx
inc ebp
mov ebx, edi
mov ecx, ebp
mov edi, dword [esp + 0x10]
add edi, ebp
mov dword [esp + 0x28], edi
movzx ebp, byte [esi + edi - 1]
lea edi, [ebp - 0x30]
cmp edi, 0xa
jb 0x4085f0
mov dword [esp + 0x20], ebp
cmp ebp, 0x2e
mov ebp, ecx
jne 0x408621
mov edi, ebp
test ebx, ebx
js 0x4085f4
mov edi, ebx
test ebx, ebx
setns cl
jns 0x40862c
mov edi, ebp
xor ebx, ebx
mov bl, cl
mov ecx, ebp
sub ecx, ebx
je 0x40868d
neg ebx
cmp ecx, 9
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], edi
mov dword [esp + 8], ebx
jle 0x4086ad
mov dword [esp + 0xc], ecx
lea edx, [ecx - 0xa]
mov ebx, dword [esp + 0x10]
lea edi, [ebx + esi]
mov ch, byte [ebx + esi - 1]
cmp ch, 0x2e
jne 0x408668
mov ch, byte [edi]
mov edi, dword [esp + 0x1c]
add edi, ebx
mov dword [esp], edi
movsx edi, ch
add edi, 0xffffffd0
test edx, edx
je 0x40879f
mov ecx, dword [esp]
movzx edx, byte [ecx]
cmp dl, 0x2e
jne 0x4086cb
movzx edx, byte [ecx + 1]
add ecx, 2
jmp 0x4086cc
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x408697
mov dword [eax], edx
fldz
fld st(0)
fchs
cmp byte [esp + 7], 0x2d
jne 0x408981
jmp 0x408987
mov edx, ebx
fldz
test ecx, ecx
mov ebx, dword [esp + 0x10]
jle 0x4086c4
lea ecx, [ebx + eax]
mov dword [esp], ecx
jmp 0x4087ab
fld st(0)
jmp 0x408819
inc ecx
mov dword [esp], ecx
lea edi, [edi + edi*4]
movsx edx, dl
lea edi, [edx + edi*2]
add edi, 0xffffffd0
mov ecx, dword [esp + 0xc]
cmp ecx, 0xc
jl 0x40879f
add ecx, 0xfffffff4
mov dword [esp + 0x24], ecx
mov edx, dword [esp]
mov ch, byte [edx]
cmp ch, 0x2e
jne 0x408701
mov ch, byte [edx + 1]
add edx, 2
jmp 0x408702
inc edx
mov dword [esp], edx
lea edi, [edi + edi*4]
movsx edx, ch
lea edi, [edx + edi*2]
add edi, 0xffffffd0
cmp dword [esp + 0x24], 0
je 0x40879f
mov ecx, dword [esp]
movzx edx, byte [ecx]
cmp dl, 0x2e
jne 0x408730
movzx edx, byte [ecx + 1]
add ecx, 2
jmp 0x408731
inc ecx
mov dword [esp], ecx
lea edi, [edi + edi*4]
movsx edx, dl
lea edi, [edx + edi*2]
add edi, 0xffffffd0
mov ecx, dword [esp + 0xc]
cmp ecx, 0xe
jl 0x40879f
add ecx, 0xfffffff2
mov dword [esp + 0xc], ecx
mov ecx, dword [esp]
movzx edx, byte [ecx]
cmp dl, 0x2e
jne 0x408764
movzx edx, byte [ecx + 1]
add ecx, 2
jmp 0x408765
inc ecx
mov dword [esp], ecx
lea edi, [edi + edi*4]
movsx edx, dl
lea edi, [edx + edi*2]
add edi, 0xffffffd0
cmp dword [esp + 0xc], 0
je 0x40879f
mov ecx, dword [esp]
movzx edx, byte [ecx]
cmp dl, 0x2e
jne 0x40878f
movzx edx, byte [ecx + 1]
add ecx, 2
jmp 0x408790
inc ecx
mov dword [esp], ecx
lea edi, [edi + edi*4]
movsx edx, dl
lea edi, [edx + edi*2]
add edi, 0xffffffd0
mov edx, dword [esp + 8]
mov dword [esp + 0x30], edi
fild dword [esp + 0x30]
add edx, ebp
cmp edx, 9
jl 0x4087b7
mov edx, 9
inc edx
xor edi, edi
jmp 0x408800
mov ch, byte [ebx + 1]
add ebx, 2
mov dword [esp], ebx
mov ebx, edi
and ebx, 0xa
mov ebp, edi
or edi, 0xa
imul edi, ebx
xor ebx, 0xa
and ebp, 0xfffffff5
imul ebp, ebx
add edi, ebp
movsx ebx, ch
mov ebp, ebx
or ebp, 0xffffffcf
and ebx, 0xffffffcf
add ebx, edi
lea edi, [ebx + ebp]
inc edi
dec edx
cmp edx, 1
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
jle 0x40880d
mov ebx, dword [esp]
mov ch, byte [ebx]
cmp ch, 0x2e
je 0x4087c0
inc ebx
jmp 0x4087c6
mov dword [esp + 0x2c], edi
fild dword [esp + 0x2c]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
fxch st(1)
fmul dword [str._knN]
faddp st(1)
or ecx, 0x20
cmp ecx, 0x65
jne 0x408844
mov eax, dword [esp + 0x28]
mov ch, byte [esi + eax]
mov dl, ch
add dl, 0xd5
test dl, 0xfd
je 0x40884c
add ebx, esi
jmp 0x408850
add eax, ebp
add ebx, eax
xor edx, edx
jmp 0x4088bd
add ebx, dword [esp + 0x1c]
lea esi, [ebx + ebp]
movzx ebx, byte [ebx + ebp]
lea edi, [ebx - 0x30]
xor edx, edx
cmp edi, 9
ja 0x408991
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea eax, [esi + 1]
mov edi, edx
or edi, 0xa
mov ebp, edx
and ebp, 0xa
imul edi, ebp
and edx, 0xfffffff5
xor ebp, 0xa
imul ebp, edx
movsx edx, bl
mov ebx, edx
and ebx, 0xffffffcf
xor edx, 0xffffffcf
add edx, edi
add edx, ebp
lea edx, [edx + ebx*2]
inc edx
movzx ebx, byte [esi + 1]
mov edi, ebx
add edi, 0xffffffd0
mov esi, eax
cmp edi, 0xa
jb 0x408870
cmp ch, 0x2d
jne 0x4088b3
neg edx
mov ebx, eax
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov ecx, ebx
mov eax, dword [esp + 8]
add eax, ebp
cmp eax, 0x10
jge 0x4088cf
mov eax, 0xf
add edi, edx
add edi, eax
mov eax, edi
mov ebx, dword [esp + 8]
sub eax, ebx
sub eax, ebp
add eax, 0xfffffff1
mov esi, eax
sar esi, 0x1f
mov edx, eax
xor edx, esi
sub edx, esi
cmp edx, 0x200
jb 0x408911
mov edx, 0x1ff
mov esi, dword [esp + 0x50]
test esi, esi
je 0x408906
mov dword [esi], 0x22
mov edi, ecx
movzx ecx, byte [esp + 7]
fldz
jmp 0x408926
sub ebx, edi
lea esi, [ebx + ebp]
add esi, 0xf
fld1
test esi, esi
mov edi, ecx
movzx ecx, byte [esp + 7]
je 0x408956
fstp st(0)
fld1
xor esi, esi
mov ebp, edi
jmp 0x408948
mov ebx, edx
shr ebx, 1
mov edi, esi
and edi, 1
xor esi, 1
lea esi, [esi + edi*2]
cmp edx, 2
mov edx, ebx
mov edi, ebp
jb 0x408956
test dl, 1
je 0x408930
fmul qword [esi*8 + 0x443250]
jmp 0x408930
fld st(1)
fmul st(1)
test eax, eax
jns 0x40896a
fstp st(0)
fdivp st(1)
fldz
fldz
fxch st(1)
fxch st(2)
fstp st(2)
fstp st(0)
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x408978
mov dword [eax], edi
fld st(0)
fchs
cmp cl, 0x2d
je 0x408987
fstp st(0)
fldz
fxch st(1)
fstp st(1)
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, esi
cmp ch, 0x2d
je 0x4088b1
jmp 0x4088b3