Function at 0x409410
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 0x409433
inc eax
inc ebp
inc esi
movzx ecx, byte [edi + esi]
movzx edx, cl
lea ebx, [edx - 9]
cmp ebx, 5
jb 0x409430
cmp edx, 0x20
je 0x409430
mov dword [esp + 0x18], eax
mov byte [esp + 3], cl
mov edx, ecx
add dl, 0xd5
xor ecx, ecx
test dl, 0xfd
sete cl
add ecx, edi
mov edi, ecx
xor ebx, ebx
mov ecx, 0xffffffff
jmp 0x409479
mov edx, ecx
mov ebx, dword [esp + 8]
inc ebx
mov ecx, edx
mov dword [esp + 8], ebx
mov edx, edi
add ebx, edi
movzx eax, byte [esi + ebx]
lea edx, [eax - 0x30]
cmp edx, 0xa
jb 0x409470
mov dword [esp + 0x14], eax
cmp al, 0x2e
jne 0x40949d
mov edx, dword [esp + 8]
test ecx, ecx
js 0x409472
mov dword [esp + 0x1c], ebx
test ecx, ecx
setns dl
jns 0x4094ac
mov ecx, dword [esp + 8]
xor ebx, ebx
mov bl, dl
mov eax, dword [esp + 8]
mov dword [esp + 0xc], ebx
sub eax, ebx
mov edx, eax
cmp eax, 0xf
jl 0x4094c6
mov edx, 0xf
test edx, edx
je 0x4094ea
mov ebx, edi
mov edi, eax
lea eax, [ebx + esi]
cmp edx, 9
mov dword [esp + 0x10], ecx
jle 0x40950e
mov ch, byte [eax]
cmp ch, 0x2e
jne 0x40951f
lea eax, [ebx + ebp]
mov ch, byte [ebx + esi + 1]
jmp 0x409525
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4094f8
mov ecx, dword [esp + 0x3c]
mov dword [eax], ecx
fldz
fld st(0)
fchs
cmp byte [esp + 3], 0x2d
jne 0x4097d1
jmp 0x4097d7
fldz
fld st(0)
test edi, edi
jg 0x409609
jmp 0x409652
mov eax, dword [esp + 0x18]
add eax, ebx
movsx edi, ch
add edi, 0xffffffd0
cmp edx, 0xb
jl 0x4095fa
mov ch, byte [eax]
cmp ch, 0x2e
jne 0x409543
mov ch, byte [eax + 1]
add eax, 2
jmp 0x409544
inc eax
lea edi, [edi + edi*4]
mov dword [esp + 4], edi
movsx edi, ch
mov ecx, dword [esp + 4]
lea edi, [edi + ecx*2]
add edi, 0xffffffd0
cmp edx, 0xc
jl 0x4095fa
mov ch, byte [eax]
cmp ch, 0x2e
jne 0x409570
mov ch, byte [eax + 1]
add eax, 2
jmp 0x409571
inc eax
lea edi, [edi + edi*4]
mov dword [esp + 4], edi
movsx edi, ch
mov ecx, dword [esp + 4]
lea edi, [edi + ecx*2]
add edi, 0xffffffd0
cmp edx, 0xd
jl 0x4095fa
mov ch, byte [eax]
cmp ch, 0x2e
jne 0x409599
mov ch, byte [eax + 1]
add eax, 2
jmp 0x40959a
inc eax
lea edi, [edi + edi*4]
mov dword [esp + 4], edi
movsx edi, ch
mov ecx, dword [esp + 4]
lea edi, [edi + ecx*2]
add edi, 0xffffffd0
cmp edx, 0xe
jl 0x4095fa
mov ch, byte [eax]
cmp ch, 0x2e
jne 0x4095c2
mov ch, byte [eax + 1]
add eax, 2
jmp 0x4095c3
inc eax
lea edi, [edi + edi*4]
mov dword [esp + 4], edi
movsx edi, ch
mov ecx, dword [esp + 4]
lea edi, [edi + ecx*2]
add edi, 0xffffffd0
cmp edx, 0xf
jl 0x4095fa
movzx edx, byte [eax]
cmp dl, 0x2e
jne 0x4095ed
movzx edx, byte [eax + 1]
add eax, 2
jmp 0x4095ee
inc eax
lea edi, [edi + edi*4]
movsx edx, dl
lea edi, [edx + edi*2]
add edi, 0xffffffd0
mov dword [esp + 0x24], edi
mov edx, 9
fild dword [esp + 0x24]
fldz
fstp st(0)
inc edx
xor edi, edi
mov dword [esp + 4], ebx
jmp 0x409640
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 ebx, dword [esp + 4]
mov ecx, dword [esp + 0x10]
jle 0x40964a
mov ch, byte [eax]
cmp ch, 0x2e
je 0x409620
inc eax
jmp 0x409626
mov dword [esp + 0x20], edi
fild dword [esp + 0x20]
mov edx, ebx
fxch st(1)
fmul dword [str._knN]
mov ebx, dword [esp + 0xc]
neg ebx
faddp st(1)
mov eax, dword [esp + 0x14]
or eax, 0x20
cmp eax, 0x65
jne 0x409691
mov dword [esp + 0xc], ebx
mov ecx, dword [esp + 0x1c]
movzx eax, byte [esi + ecx + 1]
mov byte [esp + 0x14], al
add al, 0xd5
test al, 0xfd
mov edi, dword [esp + 8]
je 0x40969f
add edx, dword [esp + 0x18]
jmp 0x4096a1
mov edi, dword [esp + 8]
add esi, edi
add edx, esi
mov ebp, edx
xor eax, eax
jmp 0x409709
add edx, ebp
mov eax, edx
lea ebp, [edx + edi]
movzx ebx, byte [edx + edi]
lea esi, [ebx - 0x30]
xor eax, eax
cmp esi, 9
ja 0x4096f0
xor eax, eax
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 0x4096c0
mov ebx, ebp
cmp byte [esp + 0x14], 0x2d
jne 0x4096fb
neg eax
mov ebp, ebx
mov edi, dword [esp + 8]
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0xc]
lea edx, [edi + ebx]
cmp edx, 0x10
jge 0x409716
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
jb 0x409754
mov edx, 0x1ff
mov esi, dword [esp + 0x44]
test esi, esi
je 0x409749
mov dword [esi], 0x22
movzx ecx, byte [esp + 3]
mov edi, ebp
fldz
jmp 0x409769
sub ebx, ecx
lea esi, [ebx + edi]
add esi, 0xf
fld1
test esi, esi
movzx ecx, byte [esp + 3]
mov edi, ebp
je 0x4097a6
fstp st(0)
xor esi, esi
fld1
mov ebp, edi
jmp 0x409798
mov ebx, edx
shr ebx, 1
mov edi, esi
and edi, 1
xor esi, 1
lea esi, [esi + edi*2]
cmp edx, 2
mov edx, ebx
mov edi, ebp
jb 0x4097a6
test dl, 1
je 0x409780
fmul qword [esi*8 + 0x43f4e0]
jmp 0x409780
fld st(1)
fmul st(1)
test eax, eax
jns 0x4097ba
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 0x4097c8
mov dword [eax], edi
fld st(0)
fchs
cmp cl, 0x2d
je 0x4097d7
fstp st(0)
fldz
fxch st(1)
fstp st(1)
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret