Function at 0x409a50
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 0x409a73
inc esi
inc ebp
inc eax
mov ch, byte [edx + eax]
movzx edi, ch
lea ebx, [edi - 9]
cmp ebx, 5
jb 0x409a70
cmp edi, 0x20
je 0x409a70
mov dword [esp + 0x1c], ebp
mov byte [esp + 3], ch
add ch, 0xd5
xor ebx, ebx
test ch, 0xfd
sete bl
add ebx, edx
mov dword [esp + 0x10], ebx
xor ebp, ebp
mov ecx, 0xffffffff
jmp 0x409ab3
mov ebp, edx
inc ebp
mov edi, dword [esp + 0x10]
mov edx, ebp
add edi, ebp
movzx ebp, byte [esi + edi - 1]
lea ebx, [ebp - 0x30]
cmp ebx, 0xa
jb 0x409ab0
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebp
cmp ebp, 0x2e
mov edi, ecx
mov ebp, edx
jne 0x409ae2
mov ecx, ebp
test edi, edi
jns 0x409ae2
inc ebp
jmp 0x409ab3
xor ebx, ebx
test edi, edi
setns ch
jns 0x409aed
mov edi, ebp
mov bl, ch
mov edx, ebp
sub edx, ebx
movzx ecx, byte [esp + 3]
je 0x409b3a
mov dword [esp + 0x24], edi
neg ebx
cmp edx, 9
mov dword [esp + 0x18], ebp
mov dword [esp + 8], ebx
jle 0x409b4f
mov edi, edx
mov dword [esp + 0xc], edx
lea ecx, [edx - 0xa]
mov dword [esp + 4], ecx
mov edi, dword [esp + 0x10]
lea ecx, [edi + esi]
movzx edx, byte [edi + esi - 1]
cmp dl, 0x2e
jne 0x409b60
movzx edx, byte [ecx]
mov ebx, dword [esp + 0x1c]
add edi, ebx
mov ebx, dword [esp + 8]
jmp 0x409b62
mov eax, dword [esp + 0x50]
test eax, eax
je 0x409b48
mov edx, dword [esp + 0x4c]
mov dword [eax], edx
fldz
jmp 0x409eb9
fldz
test edx, edx
mov edi, dword [esp + 0x10]
jle 0x409b8a
add edi, eax
jmp 0x409d02
mov edi, ecx
movsx ecx, dl
mov dword [esp + 0x14], ecx
add ecx, 0xffffffd0
cmp dword [esp + 4], 0
je 0x409b91
movzx edx, byte [edi]
cmp dl, 0x2e
jne 0x409b98
movzx edx, byte [edi + 1]
mov byte [esp + 4], dl
add edi, 2
mov ebx, ecx
jmp 0x409b9f
fld st(0)
jmp 0x409d72
mov edx, ecx
jmp 0x409cfa
inc edi
mov ebx, ecx
mov byte [esp + 4], dl
and ebx, 0xfffffff5
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x14]
and ebx, 0xa
mov edx, ebx
xor edx, 0xa
imul edx, dword [esp + 0x20]
or ecx, 0xa
imul ecx, ebx
movsx ebx, byte [esp + 4]
add ecx, edx
mov edx, ecx
lea edx, [ebx + ecx]
add edx, 0xffffffd0
mov ecx, dword [esp + 0xc]
cmp ecx, 0xc
jl 0x409cf6
add ecx, 0xfffffff4
movzx ebx, byte [edi]
cmp bl, 0x2e
mov dword [esp + 4], ecx
jne 0x409bf5
movzx ecx, byte [edi + 1]
mov byte [esp + 0x14], cl
add edi, 2
jmp 0x409bfa
inc edi
mov byte [esp + 0x14], bl
mov ebx, edx
and ebx, 0xfffffff5
mov ecx, edx
and ecx, 0xa
or edx, 0xa
imul edx, ecx
xor ecx, 0xa
imul ecx, ebx
movsx ebx, byte [esp + 0x14]
add edx, ecx
add edx, ebx
add edx, 0xffffffd0
cmp dword [esp + 4], 0
je 0x409cf6
movzx ecx, byte [edi]
cmp cl, 0x2e
jne 0x409c3c
movzx ecx, byte [edi + 1]
mov byte [esp + 4], cl
add edi, 2
jmp 0x409c41
inc edi
mov byte [esp + 4], cl
mov ebx, edx
and ebx, 0xfffffff5
mov ecx, edx
and ecx, 0xa
or edx, 0xa
imul edx, ecx
xor ecx, 0xa
imul ecx, ebx
movsx ebx, byte [esp + 4]
add edx, ecx
add edx, ebx
add edx, 0xffffffd0
mov ecx, dword [esp + 0xc]
cmp ecx, 0xe
jl 0x409cf6
add ecx, 0xfffffff2
mov dword [esp + 0xc], ecx
movzx ecx, byte [edi]
cmp cl, 0x2e
jne 0x409c8c
movzx ecx, byte [edi + 1]
mov byte [esp + 4], cl
add edi, 2
jmp 0x409c91
inc edi
mov byte [esp + 4], cl
mov ebx, edx
and ebx, 0xfffffff5
mov ecx, edx
and ecx, 0xa
or edx, 0xa
imul edx, ecx
xor ecx, 0xa
imul ecx, ebx
movsx ebx, byte [esp + 4]
add edx, ecx
add edx, ebx
add edx, 0xffffffd0
cmp dword [esp + 0xc], 0
je 0x409cf6
movzx ecx, byte [edi]
cmp cl, 0x2e
jne 0x409ccf
movzx ecx, byte [edi + 1]
mov byte [esp + 0xc], cl
add edi, 2
jmp 0x409cd4
inc edi
mov byte [esp + 0xc], cl
mov ebx, edx
and ebx, 0xfffffff5
mov ecx, edx
and ecx, 0xa
or edx, 0xa
imul edx, ecx
xor ecx, 0xa
imul ecx, ebx
movsx ebx, byte [esp + 0xc]
add edx, ecx
add edx, ebx
add edx, 0xffffffd0
mov ebx, dword [esp + 8]
mov dword [esp + 0x34], edx
fild dword [esp + 0x34]
lea edx, [ebx + ebp]
cmp edx, 9
jl 0x409d0f
mov edx, 9
inc edx
xor ebx, ebx
jmp 0x409d58
mov ch, byte [edi + 1]
add edi, 2
mov dword [esp + 0xc], edi
mov edi, ebx
and edi, 0xa
mov ebp, ebx
or ebx, 0xa
imul ebx, edi
xor edi, 0xa
and ebp, 0xfffffff5
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]
mov edi, dword [esp + 0xc]
jle 0x409d62
mov ch, byte [edi]
cmp ch, 0x2e
je 0x409d20
inc edi
jmp 0x409d26
mov dword [esp + 0x30], ebx
fild dword [esp + 0x30]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 8]
fxch st(1)
fmul dword [str._knN]
faddp st(1)
mov edx, dword [esp + 0x2c]
or edx, 0x20
cmp edx, 0x65
jne 0x409da7
mov eax, dword [esp + 0x28]
movzx eax, byte [esi + eax]
mov edx, eax
add dl, 0xd5
test dl, 0xfd
je 0x409daf
mov edi, dword [esp + 0x10]
add edi, esi
mov edx, edi
lea esi, [edi + ebp]
jmp 0x409dbb
add eax, ebp
add edi, eax
xor edx, edx
jmp 0x409e0f
mov esi, dword [esp + 0x10]
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 0x409dff
xor edx, edx
nop
mov esi, edx
or esi, 0xa
mov edi, edx
and edi, 0xa
imul esi, edi
and edx, 0xfffffff5
xor edi, 0xa
imul edi, edx
movsx edx, bl
add edx, esi
add edx, edi
add edx, 0xffffffd0
movzx ebx, byte [ebp + 1]
inc ebp
mov esi, ebx
add esi, 0xffffffd0
cmp esi, 0xa
jb 0x409dd0
mov edi, ebp
cmp al, 0x2d
jne 0x409e07
neg edx
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 8]
lea eax, [ebx + ebp]
cmp eax, 0x10
jge 0x409e1c
mov eax, 0xf
mov ebx, dword [esp + 0x24]
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
jb 0x409e60
mov edx, 0x1ff
mov esi, dword [esp + 0x54]
test esi, esi
je 0x409e57
mov dword [esi], 0x22
movzx ecx, byte [esp + 3]
fldz
jmp 0x409e73
sub ecx, ebx
lea esi, [ecx + ebp]
add esi, 0xf
fld1
test esi, esi
movzx ecx, byte [esp + 3]
je 0x409e97
fstp st(0)
fld1
mov esi, 0x4412d0
jmp 0x409e8e
mov ebx, edx
shr ebx, 1
add esi, 8
cmp edx, 2
mov edx, ebx
jb 0x409e97
test dl, 1
je 0x409e80
fmul qword [esi]
jmp 0x409e80
fld st(1)
fmul st(1)
test eax, eax
jns 0x409eab
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 0x409eb9
mov dword [eax], edi
fld st(0)
fchs
cmp cl, 0x2d
je 0x409ec8
fstp st(0)
fldz
fxch st(1)
fstp st(1)
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret