Function at 0x409090
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov edi, dword [esp + 0x34]
jmp 0x4090a1
inc edi
movzx ecx, byte [edi]
movzx eax, cl
lea edx, [eax - 9]
cmp edx, 5
jb 0x4090a0
cmp eax, 0x20
je 0x4090a0
mov byte [esp + 3], cl
mov eax, ecx
add al, 0xd5
test al, 0xfd
mov eax, 0
sete al
xor esi, esi
mov ebx, 0xffffffff
jmp 0x4090d5
mov edx, ebx
inc esi
mov ebx, edx
lea ebp, [eax + esi]
movzx ecx, byte [edi + ebp]
lea edx, [ecx - 0x30]
cmp edx, 0xa
jb 0x4090d0
mov dword [esp + 0x14], ecx
cmp cl, 0x2e
jne 0x4090f3
mov edx, esi
test ebx, ebx
js 0x4090d2
mov dword [esp + 0xc], ebp
xor edx, edx
test ebx, ebx
setns ch
jns 0x409102
mov ebx, esi
add eax, edi
mov dl, ch
mov ebp, esi
sub ebp, edx
cmp ebp, 0x10
mov dword [esp + 0x10], eax
jl 0x409121
add ebx, 0xfffffff1
mov ebp, 0xf
mov dword [esp + 8], ebx
jmp 0x40914e
test ebp, ebp
je 0x409302
neg edx
mov ecx, ebx
not ecx
and ecx, ebp
mov dword [esp + 4], esi
not esi
sub esi, edx
and esi, ebx
sub esi, ecx
mov dword [esp + 8], esi
cmp ebp, 0xa
jl 0x40931f
mov esi, dword [esp + 4]
inc ebp
xor ebx, ebx
mov edx, eax
jmp 0x409178
mov ch, byte [edx + 1]
add edx, 2
lea ebx, [ebx + ebx*4]
movsx eax, ch
lea ebx, [eax + ebx*2]
add ebx, 0xffffffd0
dec ebp
cmp ebp, 0xa
jle 0x409182
mov ch, byte [edx]
cmp ch, 0x2e
je 0x409160
inc edx
jmp 0x409166
mov dword [esp + 0x1c], ebx
mov ebp, 9
fild dword [esp + 0x1c]
fldz
fstp st(0)
inc ebp
xor ebx, ebx
jmp 0x4091bc
mov ch, byte [edx + 1]
add edx, 2
lea eax, [ebx + ebx*4]
movsx ebx, ch
lea ebx, [ebx + eax*2]
add ebx, 0xffffffd0
dec ebp
cmp ebp, 1
mov eax, dword [esp + 0x10]
jle 0x4091c6
mov ch, byte [edx]
cmp ch, 0x2e
je 0x4091a0
inc edx
jmp 0x4091a6
mov dword [esp + 0x18], ebx
fild dword [esp + 0x18]
fxch st(1)
fmul dword [str._knN]
faddp st(1)
mov ecx, dword [esp + 0x14]
or ecx, 0x20
cmp ecx, 0x65
jne 0x409252
mov eax, dword [esp + 0xc]
lea esi, [edi + eax]
movzx edx, byte [edi + eax + 1]
mov eax, edx
add al, 0xd5
and al, 0xfd
cmp al, 1
adc esi, 1
mov ebp, esi
movzx ebx, byte [esi]
lea esi, [ebx - 0x30]
xor eax, eax
cmp esi, 9
ja 0x40925f
xor eax, eax
movzx ecx, byte [esp + 3]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov esi, eax
and esi, 0xa
mov edi, eax
or eax, 0xa
imul eax, esi
xor esi, 0xa
and edi, 0xfffffff5
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 0x409220
jmp 0x409264
add eax, esi
mov edi, eax
xor eax, eax
movzx ecx, byte [esp + 3]
jmp 0x40926d
movzx ecx, byte [esp + 3]
mov edi, ebp
cmp dl, 0x2d
jne 0x40926d
neg eax
add eax, dword [esp + 8]
mov esi, eax
sar esi, 0x1f
mov edx, eax
xor edx, esi
sub edx, esi
cmp edx, 0x200
jb 0x40929b
mov edx, 0x1ff
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x409297
mov dword [esi], 0x22
fldz
jmp 0x4092a1
fld1
test eax, eax
je 0x4092c7
fstp st(0)
fld1
mov esi, 0x43e4e0
jmp 0x4092be
mov ebx, edx
shr ebx, 1
add esi, 8
cmp edx, 2
mov edx, ebx
jb 0x4092c7
test dl, 1
je 0x4092b0
fmul qword [esi]
jmp 0x4092b0
fld st(1)
fmul st(1)
test eax, eax
jns 0x4092db
fstp st(0)
fdivp st(1)
fldz
fldz
fxch st(1)
fxch st(2)
fstp st(2)
fstp st(0)
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4092e9
mov dword [eax], edi
fld st(0)
fchs
cmp cl, 0x2d
je 0x4092f8
fstp st(0)
fldz
fxch st(1)
fstp st(1)
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x38]
test eax, eax
je 0x409310
mov ecx, dword [esp + 0x34]
mov dword [eax], ecx
fldz
fld st(0)
fchs
cmp byte [esp + 3], 0x2d
jne 0x4092f2
jmp 0x4092f8
fldz
mov edx, eax
fld st(0)
test ebp, ebp
mov esi, dword [esp + 4]
jg 0x409191
jmp 0x4091ce