Function at 0x409060
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov edi, dword [esp + 0x34]
jmp 0x409071
inc edi
movzx ecx, byte [edi]
movzx eax, cl
lea edx, [eax - 9]
cmp edx, 5
jb 0x409070
cmp eax, 0x20
je 0x409070
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 0x4090a5
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 0x4090a0
mov dword [esp + 0x14], ecx
cmp cl, 0x2e
jne 0x4090c3
mov edx, esi
test ebx, ebx
js 0x4090a2
mov dword [esp + 0xc], ebp
xor edx, edx
test ebx, ebx
setns ch
jns 0x4090d2
mov ebx, esi
add eax, edi
mov dl, ch
mov dword [esp + 4], esi
mov ebp, esi
sub ebp, edx
cmp ebp, 0x10
mov dword [esp + 0x10], eax
jl 0x4090fd
mov edx, ebx
or edx, 0xfffffff0
and ebx, 0xfffffff0
add edx, ebx
inc edx
mov dword [esp + 8], edx
mov ebp, 0xf
jmp 0x409126
test ebp, ebp
je 0x409302
neg edx
mov ecx, ebx
not ecx
and ecx, ebp
mov esi, dword [esp + 4]
not esi
sub esi, edx
and esi, ebx
sub esi, ecx
mov dword [esp + 8], esi
cmp ebp, 0xa
jl 0x40931f
inc ebp
xor ebx, ebx
mov edx, eax
jmp 0x40915c
mov ch, byte [edx + 1]
add edx, 2
mov eax, ebx
and eax, 0xa
mov esi, ebx
or ebx, 0xa
imul ebx, eax
xor eax, 0xa
and esi, 0xfffffff5
imul esi, eax
movsx eax, ch
add ebx, esi
add ebx, eax
add ebx, 0xffffffd0
dec ebp
cmp ebp, 0xa
jle 0x409166
mov ch, byte [edx]
cmp ch, 0x2e
je 0x409130
inc edx
jmp 0x409136
mov dword [esp + 0x1c], ebx
mov ebp, 9
fild dword [esp + 0x1c]
fldz
fstp st(0)
inc ebp
xor ebx, ebx
jmp 0x4091b0
mov ch, byte [edx + 1]
add edx, 2
mov eax, ebx
and eax, 0xa
mov esi, ebx
or ebx, 0xa
imul ebx, eax
xor eax, 0xa
and esi, 0xfffffff5
imul esi, eax
movsx eax, ch
add ebx, esi
add ebx, eax
add ebx, 0xffffffd0
dec ebp
cmp ebp, 1
mov eax, dword [esp + 0x10]
jle 0x4091ba
mov ch, byte [edx]
cmp ch, 0x2e
je 0x409180
inc edx
jmp 0x409186
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 0x409242
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 0x409255
xor eax, eax
movzx ecx, byte [esp + 3]
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 0x409210
jmp 0x40925a
add eax, dword [esp + 4]
mov edi, eax
xor eax, eax
mov ebx, dword [esp + 0x3c]
movzx ecx, byte [esp + 3]
jmp 0x409267
movzx ecx, byte [esp + 3]
mov edi, ebp
cmp dl, 0x2d
jne 0x409263
neg eax
mov ebx, dword [esp + 0x3c]
add eax, dword [esp + 8]
mov esi, eax
sar esi, 0x1f
mov edx, eax
xor edx, esi
sub edx, esi
cmp edx, 0x200
jb 0x409291
mov edx, 0x1ff
test ebx, ebx
je 0x40928d
mov dword [ebx], 0x22
fldz
jmp 0x409297
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
jg 0x409175
jmp 0x4091c2