Function at 0x4097d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x38
mov esi, 1
mov ebp, 2
xor eax, eax
mov edx, dword [esp + 0x4c]
jmp 0x4097f3
inc esi
inc ebp
inc eax
mov ch, byte [edx + eax]
movzx edi, ch
lea ebx, [edi - 9]
cmp ebx, 5
jb 0x4097f0
cmp edi, 0x20
je 0x4097f0
mov dword [esp + 0x1c], ebp
mov byte [esp + 7], ch
add ch, 0xd5
xor ebx, ebx
test ch, 0xfd
sete bl
add ebx, edx
mov dword [esp + 0xc], ebx
xor ebp, ebp
mov ecx, 0xffffffff
jmp 0x409833
mov ebp, edx
inc ebp
mov edi, dword [esp + 0xc]
mov edx, ebp
add edi, ebp
movzx ebp, byte [esi + edi - 1]
lea ebx, [ebp - 0x30]
cmp ebx, 0xa
jb 0x409830
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], ebp
cmp ebp, 0x2e
mov edi, ecx
mov ebp, edx
jne 0x409862
mov ecx, ebp
test edi, edi
jns 0x409862
inc ebp
jmp 0x409833
xor ebx, ebx
test edi, edi
setns ch
mov edx, dword [esp + 0x4c]
jns 0x409871
mov edi, ebp
mov bl, ch
mov ecx, ebp
sub ecx, ebx
je 0x4098e0
neg ebx
cmp ecx, 9
mov dword [esp + 0x18], ebp
mov dword [esp + 8], ebx
mov dword [esp + 0x28], edi
jle 0x4098f6
mov dword [esp + 0x10], ecx
add ecx, 0xfffffff6
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0xc]
lea ebx, [edx + esi]
mov ch, byte [edx + esi - 1]
cmp ch, 0x2e
jne 0x4098af
mov ch, byte [ebx]
mov ebx, dword [esp + 0x1c]
add ebx, edx
mov dword [esp], ebx
movsx ebx, ch
mov edx, ebx
xor edx, 0xffffffcf
and ebx, 0xffffffcf
lea ebx, [edx + ebx*2]
inc ebx
cmp dword [esp + 0x14], 0
je 0x409a09
mov ecx, dword [esp]
movzx edx, byte [ecx]
cmp dl, 0x2e
jne 0x409912
movzx edx, byte [ecx + 1]
add ecx, 2
jmp 0x409913
mov eax, dword [esp + 0x50]
test eax, eax
movzx ecx, byte [esp + 7]
je 0x4098ef
mov dword [eax], edx
fldz
jmp 0x409bc9
fldz
test ecx, ecx
mov edi, dword [esp + 0xc]
jle 0x40990b
lea ecx, [edi + eax]
mov dword [esp], ecx
jmp 0x409a17
fld st(0)
jmp 0x409a80
inc ecx
mov dword [esp], ecx
lea ecx, [ebx + ebx*4]
movsx ebx, dl
mov edx, ebx
xor edx, 0xffffffcf
lea edx, [edx + ecx*2]
and ebx, 0xffffffcf
lea ebx, [edx + ebx*2]
inc ebx
mov ecx, dword [esp + 0x10]
cmp ecx, 0xc
jl 0x409a09
add ecx, 0xfffffff4
mov dword [esp + 0x14], ecx
mov edx, dword [esp]
mov ch, byte [edx]
cmp ch, 0x2e
jne 0x409951
mov ch, byte [edx + 1]
add edx, 2
jmp 0x409952
inc edx
mov dword [esp], edx
lea edx, [ebx + ebx*4]
mov dword [esp + 0x24], edx
movsx ebx, ch
mov edx, ebx
xor edx, 0xffffffcf
mov ecx, dword [esp + 0x24]
lea edx, [edx + ecx*2]
and ebx, 0xffffffcf
lea ebx, [edx + ebx*2]
inc ebx
cmp dword [esp + 0x14], 0
je 0x409a09
mov ecx, dword [esp]
movzx edx, byte [ecx]
cmp dl, 0x2e
jne 0x409991
movzx edx, byte [ecx + 1]
add ecx, 2
jmp 0x409992
inc ecx
mov dword [esp], ecx
lea ecx, [ebx + ebx*4]
movsx ebx, dl
mov edx, ebx
xor edx, 0xffffffcf
lea edx, [edx + ecx*2]
and ebx, 0xffffffcf
lea ebx, [edx + ebx*2]
inc ebx
mov ecx, dword [esp + 0x10]
cmp ecx, 0xe
jl 0x409a09
add ecx, 0xfffffff2
mov dword [esp + 0x10], ecx
mov ecx, dword [esp]
movzx edx, byte [ecx]
cmp dl, 0x2e
jne 0x4099ce
movzx edx, byte [ecx + 1]
add ecx, 2
jmp 0x4099cf
inc ecx
mov dword [esp], ecx
lea ecx, [ebx + ebx*4]
movsx ebx, dl
mov edx, ebx
xor edx, 0xffffffcf
lea edx, [edx + ecx*2]
and ebx, 0xffffffcf
lea ebx, [edx + ebx*2]
inc ebx
cmp dword [esp + 0x10], 0
je 0x409a09
mov ecx, dword [esp]
movzx edx, byte [ecx]
cmp dl, 0x2e
jne 0x409be2
movzx edx, byte [ecx + 1]
add ecx, 2
jmp 0x409be3
mov ecx, ebx
mov ebx, dword [esp + 8]
mov dword [esp + 0x34], ecx
fild dword [esp + 0x34]
lea edx, [ebx + ebp]
cmp edx, 9
jl 0x409a24
mov edx, 9
inc edx
xor ebx, ebx
jmp 0x409a63
mov ch, byte [edi + 1]
add edi, 2
mov dword [esp], edi
mov edi, ebx
and edi, 0xfffffff5
mov ebp, ebx
and ebp, 0xa
or ebx, 0xa
imul ebx, ebp
xor ebp, 0xa
imul ebp, edi
movsx edi, ch
add ebx, ebp
add ebx, edi
add ebx, 0xffffffd0
dec edx
cmp edx, 1
mov ebp, dword [esp + 0x18]
jle 0x409a70
mov edi, dword [esp]
mov ch, byte [edi]
cmp ch, 0x2e
je 0x409a30
inc edi
jmp 0x409a36
mov dword [esp + 0x30], ebx
fild dword [esp + 0x30]
mov edi, dword [esp + 0xc]
mov ebx, dword [esp + 8]
mov ecx, dword [esp + 0x20]
fxch st(1)
fmul dword [str._knN]
faddp st(1)
or ecx, 0x20
cmp ecx, 0x65
jne 0x409ab5
mov eax, dword [esp + 0x2c]
movzx eax, byte [esi + eax]
mov edx, eax
add dl, 0xd5
test dl, 0xfd
je 0x409abd
mov edi, dword [esp + 0xc]
add edi, esi
mov edx, edi
lea esi, [edi + ebp]
jmp 0x409ac9
add eax, ebp
add edi, eax
xor edx, edx
jmp 0x409b14
mov esi, dword [esp + 0xc]
add esi, dword [esp + 0x1c]
mov edx, esi
add esi, ebp
mov edi, ebp
mov ebp, esi
movzx ebx, byte [edx + edi]
lea esi, [ebx - 0x30]
xor edx, edx
cmp esi, 9
ja 0x409b04
xor edx, edx
nop
nop
nop
lea edx, [edx + edx*4]
movsx esi, bl
mov edi, esi
and edi, 0xffffffcf
xor esi, 0xffffffcf
lea edx, [esi + edx*2]
lea edx, [edx + edi*2]
inc edx
movzx ebx, byte [ebp + 1]
inc ebp
mov esi, ebx
add esi, 0xffffffd0
cmp esi, 0xa
jb 0x409ae0
mov edi, ebp
cmp al, 0x2d
jne 0x409b0c
neg edx
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 8]
lea eax, [ebx + ebp]
cmp eax, 0x10
jge 0x409b21
mov eax, 0xf
mov ebx, dword [esp + 0x28]
add ebx, edx
add ebx, eax
mov eax, ebx
mov ecx, dword [esp + 8]
sub eax, ecx
sub eax, ebp
add eax, 0xfffffff1
mov esi, eax
sar esi, 0x1f
mov edx, eax
xor edx, esi
sub edx, esi
cmp edx, 0x200
jl 0x409b65
mov edx, 0x1ff
mov esi, dword [esp + 0x54]
test esi, esi
je 0x409b5c
mov dword [esi], 0x22
movzx ecx, byte [esp + 7]
fldz
jmp 0x409b78
sub ecx, ebx
lea esi, [ecx + ebp]
add esi, 0xf
fld1
test esi, esi
movzx ecx, byte [esp + 7]
je 0x409ba7
fstp st(0)
fld1
mov esi, 0x442250
jmp 0x409b9e
mov ebx, edx
sar ebx, 1
add esi, 8
cmp edx, 2
mov edx, ebx
jb 0x409ba7
test dl, 1
je 0x409b90
fmul qword [esi]
jmp 0x409b90
fld st(1)
fmul st(1)
test eax, eax
jns 0x409bbb
fstp st(0)
fdivp st(1)
fldz
fldz
fxch st(1)
fxch st(2)
fstp st(2)
fstp st(0)
mov eax, dword [esp + 0x50]
test eax, eax
je 0x409bc9
mov dword [eax], edi
fld st(0)
fchs
cmp cl, 0x2d
je 0x409bd8
fstp st(0)
fldz
fxch st(1)
fstp st(1)
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
inc ecx
mov dword [esp], ecx
lea ecx, [ebx + ebx*4]
movsx ebx, dl
mov edx, ebx
xor edx, 0xffffffcf
lea edx, [edx + ecx*2]
and ebx, 0xffffffcf
lea ecx, [edx + ebx*2]
inc ecx
jmp 0x409a0b