Function at 0x408410
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 0x408433
inc esi
inc ebp
inc eax
mov ch, byte [edx + eax]
movzx edi, ch
lea ebx, [edi - 9]
cmp ebx, 5
jb 0x408430
cmp edi, 0x20
je 0x408430
mov byte [esp + 0xb], ch
add ch, 0xd5
xor ebx, ebx
test ch, 0xfd
sete bl
add ebx, edx
mov dword [esp + 0xc], ebx
xor edi, edi
mov ebx, 0xffffffff
jmp 0x408475
mov edi, dword [esp + 4]
inc edi
mov dword [esp + 4], edi
mov ecx, dword [esp + 0xc]
add ecx, edi
movzx edx, byte [esi + ecx - 1]
lea edi, [edx - 0x30]
cmp edi, 0xa
jb 0x408470
mov edi, ebx
mov dword [esp + 0x20], edx
cmp edx, 0x2e
jne 0x40849f
mov ebx, dword [esp + 4]
test edi, edi
js 0x408470
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], edi
test edi, edi
setns ch
mov edi, dword [esp + 4]
mov edx, dword [esp + 0x44]
jns 0x4084ba
mov dword [esp + 0x18], edi
xor ebx, ebx
mov bl, ch
mov ecx, edi
sub ecx, ebx
je 0x408517
neg ebx
cmp ecx, 9
mov dword [esp + 0x10], ebx
jle 0x40853a
mov dword [esp + 0x14], ecx
add ecx, 0xfffffff6
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0xc]
lea ebx, [edx + esi]
mov ch, byte [edx + esi - 1]
cmp ch, 0x2e
jne 0x4084ef
mov ch, byte [ebx]
lea ebx, [edx + ebp]
mov dword [esp], ebx
movsx ebx, ch
add ebx, 0xffffffd0
cmp dword [esp + 0x1c], 0
je 0x408658
mov ecx, dword [esp]
movzx edx, byte [ecx]
cmp dl, 0x2e
jne 0x408558
movzx edx, byte [ecx + 1]
add ecx, 2
jmp 0x408559
mov eax, dword [esp + 0x48]
test eax, eax
movzx ecx, byte [esp + 0xb]
je 0x408526
mov dword [eax], edx
fldz
fld st(0)
fchs
cmp cl, 0x2d
jne 0x408832
jmp 0x408838
fldz
test ecx, ecx
jle 0x408551
mov edx, ebx
mov ebx, dword [esp + 0xc]
lea ecx, [ebx + eax]
mov dword [esp], ecx
jmp 0x408664
fld st(0)
jmp 0x4086bc
inc ecx
mov dword [esp], ecx
add ebx, ebx
lea ecx, [ebx + ebx*4]
movsx edx, dl
add edx, 0xffffffd0
mov edi, edx
and edi, ecx
xor edx, ecx
lea ebx, [edx + edi*2]
mov ecx, dword [esp + 0x14]
cmp ecx, 0xc
jl 0x408654
lea edi, [ecx - 0xc]
mov edx, dword [esp]
mov ch, byte [edx]
cmp ch, 0x2e
mov dword [esp + 0x1c], edi
jne 0x408596
mov ch, byte [edx + 1]
add edx, 2
jmp 0x408597
inc edx
mov dword [esp], edx
add ebx, ebx
lea ebx, [ebx + ebx*4]
movsx edx, ch
add edx, 0xffffffd0
mov edi, edx
and edi, ebx
xor edx, ebx
lea ebx, [edx + edi*2]
cmp dword [esp + 0x1c], 0
je 0x408654
mov ecx, dword [esp]
movzx edx, byte [ecx]
cmp dl, 0x2e
jne 0x4085cd
movzx edx, byte [ecx + 1]
add ecx, 2
jmp 0x4085ce
inc ecx
mov dword [esp], ecx
add ebx, ebx
lea ecx, [ebx + ebx*4]
movsx edx, dl
add edx, 0xffffffd0
mov edi, edx
and edi, ecx
xor edx, ecx
lea ebx, [edx + edi*2]
mov ecx, dword [esp + 0x14]
cmp ecx, 0xe
jl 0x408654
add ecx, 0xfffffff2
mov dword [esp + 0x14], ecx
mov ecx, dword [esp]
movzx edx, byte [ecx]
cmp dl, 0x2e
jne 0x408609
movzx edx, byte [ecx + 1]
add ecx, 2
jmp 0x40860a
inc ecx
mov dword [esp], ecx
add ebx, ebx
lea ecx, [ebx + ebx*4]
movsx edx, dl
add edx, 0xffffffd0
mov edi, edx
and edi, ecx
xor edx, ecx
lea ebx, [edx + edi*2]
cmp dword [esp + 0x14], 0
je 0x408654
mov ecx, dword [esp]
movzx edx, byte [ecx]
cmp dl, 0x2e
jne 0x40863c
movzx edx, byte [ecx + 1]
add ecx, 2
jmp 0x40863d
inc ecx
mov dword [esp], ecx
add ebx, ebx
lea ecx, [ebx + ebx*4]
movsx edx, dl
add edx, 0xffffffd0
mov edi, edx
and edi, ecx
xor edx, ecx
lea ebx, [edx + edi*2]
mov edi, dword [esp + 4]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x2c], ebx
fild dword [esp + 0x2c]
add edx, edi
cmp edx, 9
jl 0x408670
mov edx, 9
inc edx
xor edi, edi
jmp 0x40869f
mov ch, byte [ebx + 1]
add ebx, 2
mov dword [esp], ebx
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 + 0x18]
jle 0x4086ac
mov ebx, dword [esp]
mov ch, byte [ebx]
cmp ch, 0x2e
je 0x408680
inc ebx
jmp 0x408686
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], edi
fild dword [esp + 0x28]
mov edi, dword [esp + 4]
mov ecx, dword [esp + 0x20]
fxch st(1)
fmul dword [str._knN]
faddp st(1)
or ecx, 0x20
cmp ecx, 0x65
jne 0x4086f1
mov eax, dword [esp + 0x24]
movzx eax, byte [esi + eax]
mov edx, eax
add dl, 0xd5
test dl, 0xfd
je 0x4086ff
mov ebx, dword [esp + 0xc]
add ebx, esi
mov edx, ebx
lea esi, [ebx + edi]
jmp 0x408709
add eax, edi
add dword [esp + 0xc], eax
xor edx, edx
mov ecx, dword [esp + 0x48]
jmp 0x40877a
mov esi, dword [esp + 0xc]
add esi, ebp
mov edx, esi
add esi, edi
mov ebx, edi
mov edi, esi
movzx ebx, byte [edx + ebx]
lea esi, [ebx - 0x30]
xor edx, edx
cmp esi, 9
mov ecx, dword [esp + 0x48]
ja 0x40876a
xor edx, edx
mov ebp, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov esi, edx
and esi, 0xfffffff5
mov edi, edx
and edi, 0xa
or edx, 0xa
imul edx, edi
xor edi, 0xa
imul edi, esi
movsx esi, bl
mov ebx, esi
or ebx, 0xffffffcf
and esi, 0xffffffcf
add esi, edx
add esi, edi
lea edx, [ebx + esi]
inc edx
movzx ebx, byte [ebp + 1]
inc ebp
mov esi, ebx
add esi, 0xffffffd0
cmp esi, 0xa
jb 0x408730
jmp 0x40876c
mov ebp, edi
cmp al, 0x2d
mov dword [esp + 0xc], ebp
jne 0x408776
neg edx
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x10]
add eax, edi
cmp eax, 0x10
jge 0x40878a
mov eax, 0xf
mov ebx, dword [esp + 0x18]
add ebx, edx
add ebx, eax
mov eax, ebx
mov ebp, dword [esp + 0x10]
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
jb 0x4087cd
mov edx, 0x1ff
mov esi, dword [esp + 0x4c]
test esi, esi
je 0x4087c5
mov dword [esi], 0x22
mov ebx, dword [esp + 0xc]
fldz
jmp 0x4087df
sub ebp, ebx
lea esi, [edi + ebp]
add esi, 0xf
fld1
test esi, esi
mov ebx, dword [esp + 0xc]
je 0x408809
fstp st(0)
fld1
mov esi, 0x440250
mov edi, ebx
jmp 0x408800
mov ebx, edx
shr ebx, 1
add esi, 8
cmp edx, 2
mov edx, ebx
mov ebx, edi
jb 0x408809
test dl, 1
je 0x4087f0
fmul qword [esi]
jmp 0x4087f0
fld st(1)
fmul st(1)
test eax, eax
jns 0x40881d
fstp st(0)
fdivp st(1)
fldz
fldz
fxch st(1)
fxch st(2)
fstp st(2)
fstp st(0)
test ecx, ecx
je 0x408827
mov dword [ecx], ebx
fld st(0)
fchs
cmp byte [esp + 0xb], 0x2d
je 0x408838
fstp st(0)
fldz
fxch st(1)
fstp st(1)
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret