Function at 0x408660
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov esi, 1
mov ebp, 2
xor eax, eax
mov edx, dword [esp + 0x44]
jmp 0x408683
inc esi
inc ebp
inc eax
mov ch, byte [edx + eax]
movzx edi, ch
lea ebx, [edi - 9]
cmp ebx, 5
jb 0x408680
cmp edi, 0x20
je 0x408680
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 + 0x10], 0xffffffff
jmp 0x4086cb
mov ebx, dword [esp + 0x10]
inc edi
mov dword [esp + 0x10], ebx
mov ecx, edi
mov edi, dword [esp + 0xc]
add edi, ecx
mov dword [esp + 0x24], edi
movzx edx, byte [esi + edi - 1]
lea ebx, [edx - 0x30]
cmp ebx, 0xa
mov edi, ecx
jb 0x4086c0
mov dword [esp + 0x1c], edx
cmp edx, 0x2e
mov ecx, dword [esp + 0x10]
jne 0x4086f7
mov ebx, edi
test ecx, ecx
js 0x4086c4
xor ebx, ebx
test ecx, ecx
setns ch
mov edx, dword [esp + 0x44]
jns 0x408708
mov dword [esp + 0x10], edi
mov bl, ch
mov ecx, edi
sub ecx, ebx
je 0x40876f
neg ebx
cmp ecx, 9
mov dword [esp + 0x18], edi
mov dword [esp + 8], ebx
jle 0x408785
mov dword [esp + 0x14], ecx
lea edx, [ecx - 0xa]
mov edi, dword [esp + 0xc]
lea ebx, [edi + esi]
mov ch, byte [edi + esi - 1]
cmp ch, 0x2e
jne 0x40873b
mov ch, byte [ebx]
lea ebx, [edi + ebp]
mov dword [esp], ebx
movsx ecx, ch
mov ebx, ecx
not ebx
and ecx, 0xffffffcf
and ebx, 0x30
sub ecx, ebx
mov ebx, ecx
test edx, edx
mov edi, dword [esp + 0x18]
je 0x4088b4
mov ecx, dword [esp]
movzx edx, byte [ecx]
cmp dl, 0x2e
jne 0x4087a1
movzx edx, byte [ecx + 1]
add ecx, 2
jmp 0x4087a2
mov eax, dword [esp + 0x48]
test eax, eax
movzx ecx, byte [esp + 7]
je 0x40877e
mov dword [eax], edx
fldz
jmp 0x408a7a
fldz
test ecx, ecx
jle 0x40879a
mov edx, dword [esp + 0xc]
lea ecx, [edx + eax]
mov dword [esp], ecx
jmp 0x4088c2
fld st(0)
jmp 0x408918
inc ecx
mov dword [esp], ecx
add ebx, ebx
lea ecx, [ebx + ebx*4]
movsx edx, dl
mov ebx, edx
not ebx
and edx, 0xffffffcf
and ebx, 0x30
sub edx, ebx
mov ebx, edx
xor ebx, ecx
and edx, ecx
lea ebx, [ebx + edx*2]
mov ecx, dword [esp + 0x14]
cmp ecx, 0xc
jl 0x4088b4
add ecx, 0xfffffff4
mov dword [esp + 0x20], ecx
mov edx, dword [esp]
movzx ecx, byte [edx]
cmp cl, 0x2e
jne 0x4087ea
movzx ecx, byte [edx + 1]
add edx, 2
jmp 0x4087eb
inc edx
mov dword [esp], edx
mov edx, ecx
add ebx, ebx
lea ecx, [ebx + ebx*4]
movsx edx, dl
mov ebx, edx
not ebx
and edx, 0xffffffcf
and ebx, 0x30
sub edx, ebx
mov ebx, edx
xor ebx, ecx
and edx, ecx
lea ebx, [ebx + edx*2]
cmp dword [esp + 0x20], 0
je 0x4088b4
mov ecx, dword [esp]
movzx edx, byte [ecx]
cmp dl, 0x2e
jne 0x40882c
movzx edx, byte [ecx + 1]
add ecx, 2
jmp 0x40882d
inc ecx
mov dword [esp], ecx
add ebx, ebx
lea ecx, [ebx + ebx*4]
movsx edx, dl
mov ebx, edx
not ebx
and edx, 0xffffffcf
and ebx, 0x30
sub edx, ebx
mov ebx, edx
xor ebx, ecx
and edx, ecx
lea ebx, [ebx + edx*2]
mov ecx, dword [esp + 0x14]
cmp ecx, 0xe
jl 0x4088b4
add ecx, 0xfffffff2
mov dword [esp + 0x14], ecx
mov ecx, dword [esp]
movzx edx, byte [ecx]
cmp dl, 0x2e
jne 0x408871
movzx edx, byte [ecx + 1]
add ecx, 2
jmp 0x408872
inc ecx
mov dword [esp], ecx
add ebx, ebx
lea ecx, [ebx + ebx*4]
movsx edx, dl
mov ebx, edx
not ebx
and edx, 0xffffffcf
and ebx, 0x30
sub edx, ebx
mov ebx, edx
xor ebx, ecx
and edx, ecx
lea ebx, [ebx + edx*2]
cmp dword [esp + 0x14], 0
je 0x4088b4
mov ecx, dword [esp]
movzx edx, byte [ecx]
cmp dl, 0x2e
jne 0x408a93
movzx edx, byte [ecx + 1]
add ecx, 2
jmp 0x408a94
mov ecx, ebx
mov ebx, dword [esp + 8]
mov dword [esp + 0x2c], ecx
fild dword [esp + 0x2c]
lea edx, [ebx + edi]
cmp edx, 9
jl 0x4088cf
mov edx, 9
inc edx
xor ebx, ebx
jmp 0x4088ff
mov ch, byte [edi + 1]
add edi, 2
mov dword [esp], edi
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 + 0x18]
jle 0x40890c
mov edi, dword [esp]
mov ch, byte [edi]
cmp ch, 0x2e
je 0x4088e0
inc edi
jmp 0x4088e6
mov dword [esp + 0x28], ebx
fild dword [esp + 0x28]
mov ebx, dword [esp + 8]
mov ecx, dword [esp + 0x1c]
fxch st(1)
fmul dword [str._knN]
faddp st(1)
or ecx, 0x20
cmp ecx, 0x65
movzx ecx, byte [esp + 7]
jne 0x408952
mov eax, dword [esp + 0x24]
movzx edx, byte [esi + eax]
mov eax, edx
add al, 0xd5
test al, 0xfd
je 0x40895c
mov ecx, edi
mov edi, dword [esp + 0xc]
add edi, esi
mov eax, edi
lea ebp, [edi + ecx]
jmp 0x408969
add eax, edi
add dword [esp + 0xc], eax
xor eax, eax
jmp 0x4089ca
mov esi, dword [esp + 0xc]
add esi, ebp
mov eax, esi
lea ebp, [esi + edi]
mov ecx, edi
movzx ebx, byte [eax + ecx]
lea esi, [ebx - 0x30]
xor eax, eax
cmp esi, 9
ja 0x4089b2
xor eax, eax
movzx ecx, byte [esp + 7]
nop
nop
mov edi, eax
and edi, 0xa
mov esi, eax
or eax, 0xa
imul eax, edi
xor edi, 0xa
and esi, 0xfffffff5
imul esi, edi
movsx edi, bl
add edi, eax
lea eax, [esi + edi]
add eax, 0xffffffd0
movzx ebx, byte [ebp + 1]
inc ebp
mov esi, ebx
add esi, 0xffffffd0
cmp esi, 0xa
jb 0x408980
jmp 0x4089b7
movzx ecx, byte [esp + 7]
mov dword [esp + 0xc], ebp
cmp dl, 0x2d
jne 0x4089c2
neg eax
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 8]
lea edx, [edi + ebx]
cmp edx, 0x10
jge 0x4089d7
mov edx, 0xf
mov ebx, dword [esp + 0x10]
add ebx, eax
add ebx, edx
mov eax, ebx
mov ebp, dword [esp + 8]
sub eax, ebp
sub eax, edi
add eax, 0xfffffff1
mov esi, eax
sar esi, 0x1f
mov edx, eax
xor edx, esi
sub edx, esi
cmp edx, 0x200
jl 0x408a16
mov edx, 0x1ff
mov esi, dword [esp + 0x4c]
test esi, esi
je 0x408a12
mov dword [esi], 0x22
fldz
jmp 0x408a24
sub ebp, ebx
lea esi, [edi + ebp]
add esi, 0xf
fld1
test esi, esi
je 0x408a54
fstp st(0)
fld1
xor esi, esi
jmp 0x408a46
mov ebx, edx
sar ebx, 1
mov edi, esi
and edi, 1
xor esi, 1
lea esi, [esi + edi*2]
cmp edx, 2
mov edx, ebx
jb 0x408a54
test dl, 1
je 0x408a30
fmul qword [esi*8 + 0x440250]
jmp 0x408a30
fld st(1)
fmul st(1)
test eax, eax
jns 0x408a68
fstp st(0)
fdivp st(1)
fldz
fldz
fxch st(1)
fxch st(2)
fstp st(2)
fstp st(0)
mov edx, dword [esp + 0x48]
test edx, edx
mov eax, dword [esp + 0xc]
je 0x408a7a
mov dword [edx], eax
fld st(0)
fchs
cmp cl, 0x2d
je 0x408a89
fstp st(0)
fldz
fxch st(1)
fstp st(1)
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
inc ecx
mov dword [esp], ecx
add ebx, ebx
lea ecx, [ebx + ebx*4]
movsx edx, dl
mov ebx, edx
not ebx
and edx, 0xffffffcf
and ebx, 0x30
sub edx, ebx
mov ebx, edx
xor ebx, ecx
and edx, ecx
lea ecx, [ebx + edx*2]
jmp 0x4088b6