Function at 0x408510
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 0x408533
inc esi
inc ebp
inc eax
mov ch, byte [edx + eax]
movzx edi, ch
lea ebx, [edi - 9]
cmp ebx, 5
jb 0x408530
cmp edi, 0x20
je 0x408530
mov dword [esp + 0x20], ebp
mov byte [esp + 7], ch
add ch, 0xd5
xor ebx, ebx
test ch, 0xfd
sete bl
add ebx, edx
mov dword [esp + 0xc], ebx
xor ecx, ecx
mov dword [esp + 0x14], 0xffffffff
jmp 0x40857b
mov ebx, dword [esp + 0x14]
inc edi
mov dword [esp + 0x14], ebx
mov ecx, edi
mov edi, dword [esp + 0xc]
add edi, ecx
mov dword [esp + 0x28], edi
movzx ebp, byte [esi + edi - 1]
lea ebx, [ebp - 0x30]
cmp ebx, 0xa
mov edi, ecx
jb 0x408570
mov dword [esp + 0x24], ebp
cmp ebp, 0x2e
mov ecx, dword [esp + 0x14]
jne 0x4085a7
mov ebx, edi
test ecx, ecx
js 0x408574
xor ebx, ebx
test ecx, ecx
setns ch
mov ebp, dword [esp + 0x20]
jns 0x4085b8
mov dword [esp + 0x14], edi
mov bl, ch
mov ecx, edi
sub ecx, ebx
je 0x408622
neg ebx
cmp ecx, 9
mov dword [esp + 0x1c], edi
mov dword [esp + 8], ebx
jle 0x408645
lea edx, [ecx - 0xa]
mov dword [esp], edx
mov edi, dword [esp + 0xc]
lea ebp, [edi + esi]
movzx edx, byte [edi + esi - 1]
cmp dl, 0x2e
mov dword [esp + 0x10], ecx
jne 0x4085f9
movzx edx, byte [ebp]
mov ecx, dword [esp + 0x20]
lea ebp, [edi + ecx]
mov ebx, dword [esp + 8]
movsx ecx, dl
lea edx, [ecx - 0x30]
cmp dword [esp], 0
mov edi, dword [esp + 0x1c]
je 0x4087b7
movzx ebx, byte [ebp]
cmp bl, 0x2e
jne 0x408662
movzx ebx, byte [ebp + 1]
mov byte [esp], bl
add ebp, 2
jmp 0x408666
mov eax, dword [esp + 0x4c]
test eax, eax
movzx ecx, byte [esp + 7]
je 0x408631
mov dword [eax], edx
fldz
fld st(0)
fchs
cmp cl, 0x2d
jne 0x408984
jmp 0x40898a
fldz
test ecx, ecx
mov ecx, dword [esp + 0x24]
jle 0x40865b
mov edx, dword [esp + 0xc]
lea ebp, [edx + eax]
jmp 0x4087bf
fld st(0)
jmp 0x40881b
inc ebp
mov byte [esp], bl
and ecx, 0xa
mov dword [esp + 0x18], ecx
mov ebx, ecx
xor ebx, 0xa
mov ecx, edx
and ecx, 0xfffffff5
imul ecx, ebx
or edx, 0xa
imul edx, dword [esp + 0x18]
movsx ebx, byte [esp]
add edx, ecx
add edx, ebx
add edx, 0xffffffd0
mov ecx, dword [esp + 0x10]
cmp ecx, 0xc
jl 0x4087b3
add ecx, 0xfffffff4
movzx ebx, byte [ebp]
cmp bl, 0x2e
mov dword [esp], ecx
jne 0x4086b6
movzx ecx, byte [ebp + 1]
mov byte [esp + 0x18], cl
add ebp, 2
jmp 0x4086bb
inc ebp
mov byte [esp + 0x18], bl
mov ebx, edx
and ebx, 0xa
mov ecx, edx
or edx, 0xa
imul edx, ebx
xor ebx, 0xa
and ecx, 0xfffffff5
imul ecx, ebx
movsx ebx, byte [esp + 0x18]
add edx, ecx
add edx, ebx
add edx, 0xffffffd0
cmp dword [esp], 0
je 0x4087b3
movzx ecx, byte [ebp]
cmp cl, 0x2e
jne 0x4086fc
movzx ecx, byte [ebp + 1]
mov byte [esp], cl
add ebp, 2
jmp 0x408700
inc ebp
mov byte [esp], cl
mov ebx, edx
and ebx, 0xa
mov ecx, edx
or edx, 0xa
imul edx, ebx
xor ebx, 0xa
and ecx, 0xfffffff5
imul ecx, ebx
movsx ebx, byte [esp]
add edx, ecx
add edx, ebx
add edx, 0xffffffd0
mov ecx, dword [esp + 0x10]
cmp ecx, 0xe
jl 0x4087b3
add ecx, 0xfffffff2
movzx ebx, byte [ebp]
cmp bl, 0x2e
mov dword [esp + 0x10], ecx
jne 0x40874a
movzx ecx, byte [ebp + 1]
mov byte [esp], cl
add ebp, 2
jmp 0x40874e
inc ebp
mov byte [esp], bl
mov ebx, edx
and ebx, 0xa
mov ecx, edx
or edx, 0xa
imul edx, ebx
xor ebx, 0xa
and ecx, 0xfffffff5
imul ecx, ebx
movsx ebx, byte [esp]
add edx, ecx
add edx, ebx
add edx, 0xffffffd0
cmp dword [esp + 0x10], 0
je 0x4087b3
movzx ecx, byte [ebp]
cmp cl, 0x2e
jne 0x40878c
movzx ecx, byte [ebp + 1]
mov byte [esp + 0x10], cl
add ebp, 2
jmp 0x408791
inc ebp
mov byte [esp + 0x10], cl
mov ebx, edx
and ebx, 0xa
mov ecx, edx
or edx, 0xa
imul edx, ebx
xor ebx, 0xa
and ecx, 0xfffffff5
imul ecx, ebx
movsx ebx, byte [esp + 0x10]
add edx, ecx
add edx, ebx
add edx, 0xffffffd0
mov ebx, dword [esp + 8]
mov dword [esp + 0x30], edx
fild dword [esp + 0x30]
lea edx, [ebx + edi]
cmp edx, 9
jl 0x4087cc
mov edx, 9
inc edx
xor ebx, ebx
jmp 0x4087fc
mov ch, byte [ebp + 1]
add ebp, 2
lea ebx, [ebx + ebx*4]
movsx edi, ch
lea ebx, [edi + ebx*2]
add ebx, 0xffffffd0
dec edx
cmp edx, 1
mov edi, dword [esp + 0x1c]
jle 0x408807
mov ch, byte [ebp]
cmp ch, 0x2e
je 0x4087e0
inc ebp
jmp 0x4087e6
mov dword [esp + 0x2c], ebx
fild dword [esp + 0x2c]
mov ebx, dword [esp + 8]
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
fxch st(1)
fmul dword [str._knN]
faddp st(1)
or ecx, 0x20
cmp ecx, 0x65
jne 0x40884b
mov eax, dword [esp + 0x28]
movzx edx, byte [esi + eax]
mov eax, edx
add al, 0xd5
test al, 0xfd
je 0x408859
mov ecx, edi
mov edi, dword [esp + 0xc]
add edi, esi
mov eax, edi
add edi, ecx
jmp 0x408867
add eax, edi
add dword [esp + 0xc], eax
xor eax, eax
mov edi, dword [esp + 0x4c]
jmp 0x4088c5
mov esi, dword [esp + 0xc]
add esi, ebp
mov eax, esi
add esi, edi
mov ecx, edi
mov edi, esi
movzx ebx, byte [eax + ecx]
lea esi, [ebx - 0x30]
xor eax, eax
cmp esi, 9
mov ecx, dword [esp + 0x4c]
ja 0x4088b2
xor eax, eax
mov ebp, edi
nop
nop
nop
mov esi, eax
and esi, 0xfffffff5
mov edi, eax
and edi, 0xa
or eax, 0xa
imul eax, edi
xor edi, 0xa
imul edi, esi
movsx esi, bl
add esi, eax
lea eax, [edi + esi]
add eax, 0xffffffd0
movzx ebx, byte [ebp + 1]
inc ebp
mov esi, ebx
add esi, 0xffffffd0
cmp esi, 0xa
jb 0x408880
jmp 0x4088b4
mov ebp, edi
mov dword [esp + 0xc], ebp
cmp dl, 0x2d
jne 0x4088bf
neg eax
mov ebx, dword [esp + 8]
mov edi, ecx
mov ecx, dword [esp + 0x1c]
lea edx, [ecx + ebx]
cmp edx, 0x10
jge 0x4088d6
mov edx, 0xf
mov ebp, dword [esp + 0x14]
add ebp, eax
add ebp, edx
mov eax, ebp
sub eax, ebx
mov ecx, ebx
mov ebx, dword [esp + 0x1c]
sub eax, ebx
add eax, 0xfffffff1
mov esi, eax
sar esi, 0x1f
mov edx, eax
xor edx, esi
sub edx, esi
cmp edx, 0x200
jb 0x408919
mov edx, 0x1ff
mov esi, dword [esp + 0x50]
test esi, esi
je 0x408913
mov dword [esi], 0x22
mov ecx, edi
fldz
jmp 0x408929
sub ecx, ebp
lea esi, [ecx + ebx]
add esi, 0xf
fld1
test esi, esi
mov ecx, edi
je 0x408957
fstp st(0)
fld1
mov esi, 0x43a250
jmp 0x40894e
mov ebx, edx
shr ebx, 1
add esi, 8
cmp edx, 2
mov edx, ebx
jb 0x408957
test dl, 1
je 0x408940
fmul qword [esi]
jmp 0x408940
fld st(1)
fmul st(1)
test eax, eax
jns 0x40896b
fstp st(0)
fdivp st(1)
fldz
fldz
fxch st(1)
fxch st(2)
fstp st(2)
fstp st(0)
test ecx, ecx
mov edi, dword [esp + 0xc]
je 0x408979
mov dword [ecx], edi
fld st(0)
fchs
cmp byte [esp + 7], 0x2d
je 0x40898a
fstp st(0)
fldz
fxch st(1)
fstp st(1)
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret