Function at 0x409050
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, 1
mov ebp, 2
xor esi, esi
mov edi, dword [esp + 0x3c]
jmp 0x409073
inc eax
inc ebp
inc esi
movzx ecx, byte [edi + esi]
movzx edx, cl
lea ebx, [edx - 9]
cmp ebx, 5
jb 0x409070
cmp edx, 0x20
je 0x409070
mov dword [esp + 0x14], eax
mov byte [esp + 3], cl
mov edx, ecx
add dl, 0xd5
xor ecx, ecx
test dl, 0xfd
sete cl
add ecx, edi
mov dword [esp + 0xc], ecx
xor ebx, ebx
mov ecx, 0xffffffff
jmp 0x4090b9
mov edx, ecx
mov ebx, dword [esp + 4]
inc ebx
mov ecx, edx
mov dword [esp + 4], ebx
mov edx, dword [esp + 0xc]
add ebx, edx
movzx eax, byte [esi + ebx]
lea edx, [eax - 0x30]
cmp edx, 0xa
jb 0x4090b0
mov dword [esp + 0x18], eax
cmp al, 0x2e
jne 0x4090df
mov edx, dword [esp + 4]
test ecx, ecx
js 0x4090b2
mov dword [esp + 0x1c], ebx
test ecx, ecx
setns dl
jns 0x4090ee
mov ecx, dword [esp + 4]
xor ebx, ebx
mov bl, dl
mov eax, dword [esp + 4]
mov dword [esp + 8], ebx
sub eax, ebx
mov edx, eax
mov ebx, eax
cmp eax, 0xf
jl 0x40910a
mov edx, 0xf
test edx, edx
mov eax, dword [esp + 0xc]
je 0x409131
cmp edx, 9
mov dword [esp + 0x10], ecx
jle 0x409151
mov ecx, dword [esp + 0x14]
lea edi, [eax + ecx]
mov ch, byte [eax + ecx - 1]
cmp ch, 0x2e
jne 0x40915e
mov ch, byte [edi]
add eax, ebp
jmp 0x409160
mov eax, dword [esp + 0x40]
test eax, eax
je 0x40913b
mov dword [eax], edi
fldz
fld st(0)
fchs
cmp byte [esp + 3], 0x2d
jne 0x409414
jmp 0x40941a
fldz
test ebx, ebx
jle 0x409187
add eax, esi
jmp 0x40925f
mov eax, edi
movsx edi, ch
mov ecx, edi
xor ecx, 0xffffffcf
and edi, 0xffffffcf
lea edi, [ecx + edi*2]
inc edi
cmp edx, 0xb
jl 0x409252
mov ch, byte [eax]
cmp ch, 0x2e
jne 0x40918e
mov ch, byte [eax + 1]
add eax, 2
jmp 0x40918f
fld st(0)
jmp 0x40929e
inc eax
lea edi, [edi + edi*4]
movsx ecx, ch
mov ebx, ecx
xor ebx, 0xffffffcf
and ecx, 0xffffffcf
lea edi, [ebx + edi*2]
lea edi, [edi + ecx*2]
inc edi
cmp edx, 0xc
jl 0x409252
mov ch, byte [eax]
cmp ch, 0x2e
jne 0x4091bc
mov ch, byte [eax + 1]
add eax, 2
jmp 0x4091bd
inc eax
lea edi, [edi + edi*4]
movsx ecx, ch
mov ebx, ecx
xor ebx, 0xffffffcf
and ecx, 0xffffffcf
lea edi, [ebx + edi*2]
lea edi, [edi + ecx*2]
inc edi
cmp edx, 0xd
jl 0x409252
mov ch, byte [eax]
cmp ch, 0x2e
jne 0x4091e6
mov ch, byte [eax + 1]
add eax, 2
jmp 0x4091e7
inc eax
lea edi, [edi + edi*4]
movsx ecx, ch
mov ebx, ecx
xor ebx, 0xffffffcf
and ecx, 0xffffffcf
lea edi, [ebx + edi*2]
lea edi, [edi + ecx*2]
inc edi
cmp edx, 0xe
jl 0x409252
mov ch, byte [eax]
cmp ch, 0x2e
jne 0x409210
mov ch, byte [eax + 1]
add eax, 2
jmp 0x409211
inc eax
lea edi, [edi + edi*4]
movsx ecx, ch
mov ebx, ecx
xor ebx, 0xffffffcf
and ecx, 0xffffffcf
lea edi, [ebx + edi*2]
lea edi, [edi + ecx*2]
inc edi
cmp edx, 0xf
jl 0x409252
movzx edx, byte [eax]
cmp dl, 0x2e
jne 0x40923c
movzx edx, byte [eax + 1]
add eax, 2
jmp 0x40923d
inc eax
lea ecx, [edi + edi*4]
movsx edx, dl
mov edi, edx
xor edi, 0xffffffcf
and edx, 0xffffffcf
lea edi, [edi + ecx*2]
lea edi, [edi + edx*2]
inc edi
mov dword [esp + 0x24], edi
mov edx, 9
fild dword [esp + 0x24]
inc edx
xor edi, edi
jmp 0x40928c
mov ch, byte [eax + 1]
add eax, 2
lea edi, [edi + edi*4]
movsx ebx, ch
lea edi, [ebx + edi*2]
add edi, 0xffffffd0
dec edx
cmp edx, 1
mov ecx, dword [esp + 0x10]
jle 0x409296
mov ch, byte [eax]
cmp ch, 0x2e
je 0x409270
inc eax
jmp 0x409276
mov dword [esp + 0x20], edi
fild dword [esp + 0x20]
mov edi, dword [esp + 4]
mov ebx, dword [esp + 8]
mov edx, dword [esp + 0x18]
fxch st(1)
fmul dword [str._knN]
neg ebx
faddp st(1)
or edx, 0x20
cmp edx, 0x65
jne 0x4092dd
mov dword [esp + 8], ebx
mov ecx, dword [esp + 0x1c]
movzx edx, byte [esi + ecx + 1]
mov eax, edx
add al, 0xd5
test al, 0xfd
je 0x4092e9
mov ecx, dword [esp + 0xc]
add ecx, dword [esp + 0x14]
jmp 0x4092ef
add esi, edi
mov ebp, dword [esp + 0xc]
add ebp, esi
xor eax, eax
jmp 0x40935f
mov ecx, dword [esp + 0xc]
add ecx, ebp
mov eax, ecx
lea ebp, [ecx + edi]
movzx ebx, byte [ecx + edi]
lea esi, [ebx - 0x30]
xor eax, eax
cmp esi, 9
ja 0x409348
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
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
mov ebx, esi
or ebx, 0xffffffcf
add ebx, eax
and esi, 0xffffffcf
add ebx, edi
lea eax, [esi + ebx]
inc eax
movzx ebx, byte [ebp + 1]
inc ebp
mov esi, ebx
add esi, 0xffffffd0
cmp esi, 0xa
jb 0x409310
mov ebx, ebp
cmp dl, 0x2d
jne 0x409351
neg eax
mov ebp, ebx
mov edi, dword [esp + 4]
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 8]
lea edx, [edi + ebx]
cmp edx, 0x10
jge 0x40936c
mov edx, 0xf
add ecx, eax
add ecx, edx
mov eax, ecx
sub eax, ebx
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 0x4093aa
mov edx, 0x1ff
mov esi, dword [esp + 0x44]
test esi, esi
je 0x40939f
mov dword [esi], 0x22
movzx ecx, byte [esp + 3]
mov ebx, ebp
fldz
jmp 0x4093bf
sub ebx, ecx
lea esi, [ebx + edi]
add esi, 0xf
fld1
test esi, esi
movzx ecx, byte [esp + 3]
mov ebx, ebp
je 0x4093e9
fstp st(0)
fld1
mov esi, 0x4414e0
mov edi, ebx
jmp 0x4093e0
mov ebx, edx
sar ebx, 1
add esi, 8
cmp edx, 2
mov edx, ebx
mov ebx, edi
jb 0x4093e9
test dl, 1
je 0x4093d0
fmul qword [esi]
jmp 0x4093d0
fld st(1)
fmul st(1)
test eax, eax
jns 0x4093fd
fstp st(0)
fdivp st(1)
fldz
fldz
fxch st(1)
fxch st(2)
fstp st(2)
fstp st(0)
mov eax, dword [esp + 0x40]
test eax, eax
je 0x40940b
mov dword [eax], ebx
fld st(0)
fchs
cmp cl, 0x2d
je 0x40941a
fstp st(0)
fldz
fxch st(1)
fstp st(1)
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret