Function at 0x4089e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x34
mov esi, 1
mov ebp, 2
xor eax, eax
mov edx, dword [esp + 0x48]
jmp 0x408a03
inc esi
inc ebp
inc eax
mov ch, byte [edx + eax]
movzx edi, ch
lea ebx, [edi - 9]
cmp ebx, 5
jb 0x408a00
cmp edi, 0x20
je 0x408a00
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 + 0x14], ebx
xor ebp, ebp
mov ecx, 0xffffffff
jmp 0x408a43
mov ebp, edx
inc ebp
mov edi, dword [esp + 0x14]
mov edx, ebp
add edi, ebp
movzx ebp, byte [esi + edi - 1]
lea ebx, [ebp - 0x30]
cmp ebx, 0xa
jb 0x408a40
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebp
cmp ebp, 0x2e
mov edi, ecx
mov ebp, edx
jne 0x408a72
mov ecx, ebp
test edi, edi
jns 0x408a72
inc ebp
jmp 0x408a43
xor ebx, ebx
test edi, edi
setns ch
jns 0x408a7d
mov edi, ebp
mov bl, ch
mov edx, ebp
sub edx, ebx
movzx ecx, byte [esp + 3]
je 0x408aca
mov dword [esp + 0x20], edi
neg ebx
cmp edx, 9
mov dword [esp + 0x18], ebp
mov dword [esp + 8], ebx
jle 0x408adf
mov edi, edx
mov dword [esp + 0xc], edx
lea ecx, [edx - 0xa]
mov dword [esp + 4], ecx
mov edi, dword [esp + 0x14]
lea ecx, [edi + esi]
movzx edx, byte [edi + esi - 1]
cmp dl, 0x2e
jne 0x408af0
movzx edx, byte [ecx]
mov ebx, dword [esp + 0x1c]
add edi, ebx
mov ebx, dword [esp + 8]
jmp 0x408af2
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x408ad8
mov edx, dword [esp + 0x48]
mov dword [eax], edx
fldz
jmp 0x408e49
fldz
test edx, edx
mov edi, dword [esp + 0x14]
jle 0x408b18
add edi, eax
jmp 0x408c90
mov edi, ecx
movsx ecx, dl
mov dword [esp + 0x10], ecx
add ecx, 0xffffffd0
cmp dword [esp + 4], 0
je 0x408b1f
movzx edx, byte [edi]
cmp dl, 0x2e
jne 0x408b26
movzx edx, byte [edi + 1]
mov byte [esp + 4], dl
add edi, 2
jmp 0x408b2b
fld st(0)
jmp 0x408d02
mov edx, ecx
jmp 0x408c88
inc edi
mov byte [esp + 4], dl
mov ebx, dword [esp + 0x10]
and ebx, 0xa
mov edx, ebx
xor edx, 0xa
mov dword [esp + 0x10], edx
mov edx, ecx
and edx, 0xfffffff5
imul edx, dword [esp + 0x10]
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 0x408c84
add ecx, 0xfffffff4
movzx ebx, byte [edi]
cmp bl, 0x2e
mov dword [esp + 4], ecx
jne 0x408b83
movzx ecx, byte [edi + 1]
mov byte [esp + 0x10], cl
add edi, 2
jmp 0x408b88
inc edi
mov byte [esp + 0x10], bl
mov ebx, edx
and ebx, 0xa
mov ecx, edx
or edx, 0xa
imul edx, ebx
xor ebx, 0xa
and ecx, 0xfffffff5
imul ecx, ebx
movsx ebx, byte [esp + 0x10]
add edx, ecx
add edx, ebx
add edx, 0xffffffd0
cmp dword [esp + 4], 0
je 0x408c84
movzx ecx, byte [edi]
cmp cl, 0x2e
jne 0x408bca
movzx ecx, byte [edi + 1]
mov byte [esp + 4], cl
add edi, 2
jmp 0x408bcf
inc edi
mov byte [esp + 4], cl
mov ebx, edx
and ebx, 0xa
mov ecx, edx
or edx, 0xa
imul edx, ebx
xor ebx, 0xa
and ecx, 0xfffffff5
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 0x408c84
add ecx, 0xfffffff2
mov dword [esp + 0xc], ecx
movzx ecx, byte [edi]
cmp cl, 0x2e
jne 0x408c1a
movzx ecx, byte [edi + 1]
mov byte [esp + 4], cl
add edi, 2
jmp 0x408c1f
inc edi
mov byte [esp + 4], cl
mov ebx, edx
and ebx, 0xa
mov ecx, edx
or edx, 0xa
imul edx, ebx
xor ebx, 0xa
and ecx, 0xfffffff5
imul ecx, ebx
movsx ebx, byte [esp + 4]
add edx, ecx
add edx, ebx
add edx, 0xffffffd0
cmp dword [esp + 0xc], 0
je 0x408c84
movzx ecx, byte [edi]
cmp cl, 0x2e
jne 0x408c5d
movzx ecx, byte [edi + 1]
mov byte [esp + 0xc], cl
add edi, 2
jmp 0x408c62
inc edi
mov byte [esp + 0xc], cl
mov ebx, edx
and ebx, 0xa
mov ecx, edx
or edx, 0xa
imul edx, ebx
xor ebx, 0xa
and ecx, 0xfffffff5
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 + 0x30], edx
fild dword [esp + 0x30]
lea edx, [ebx + ebp]
cmp edx, 9
jl 0x408c9d
mov edx, 9
inc edx
xor ebx, ebx
jmp 0x408ce8
mov ch, byte [edi + 1]
add edi, 2
mov dword [esp + 0xc], edi
mov edi, ebx
or edi, 0xa
mov ebp, ebx
and ebp, 0xa
imul edi, ebp
xor ebp, 0xa
and ebx, 0xfffffff5
imul ebx, ebp
movsx ebp, ch
add ebx, edi
add ebx, ebp
add ebx, 0xffffffd0
dec edx
cmp edx, 1
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0xc]
jle 0x408cf2
mov ch, byte [edi]
cmp ch, 0x2e
je 0x408cb0
inc edi
jmp 0x408cb6
mov dword [esp + 0x2c], ebx
fild dword [esp + 0x2c]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 8]
fxch st(1)
fmul dword [str._knN]
faddp st(1)
mov edx, dword [esp + 0x28]
or edx, 0x20
cmp edx, 0x65
jne 0x408d35
mov eax, dword [esp + 0x24]
movzx edx, byte [esi + eax]
mov eax, edx
add al, 0xd5
test al, 0xfd
je 0x408d3d
mov edi, dword [esp + 0x14]
add edi, esi
mov eax, edi
lea esi, [edi + ebp]
jmp 0x408d49
add eax, ebp
add edi, eax
xor eax, eax
jmp 0x408da1
mov esi, dword [esp + 0x14]
add esi, dword [esp + 0x1c]
mov eax, esi
add esi, ebp
mov edi, ebp
mov ebp, esi
movzx ebx, byte [eax + edi]
lea esi, [ebx - 0x30]
xor eax, eax
cmp esi, 9
ja 0x408d90
xor eax, eax
nop
nop
nop
mov edi, eax
and edi, 0xa
mov esi, eax
or eax, 0xa
imul eax, edi
xor edi, 0xa
and esi, 0xfffffff5
imul esi, edi
movsx edi, bl
add edi, eax
lea eax, [esi + edi]
add eax, 0xffffffd0
movzx ebx, byte [ebp + 1]
inc ebp
mov esi, ebx
add esi, 0xffffffd0
cmp esi, 0xa
jb 0x408d60
mov edi, ebp
cmp dl, 0x2d
jne 0x408d99
neg eax
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 8]
lea edx, [ebx + ebp]
cmp edx, 0x10
jge 0x408dae
mov edx, 0xf
mov ebx, dword [esp + 0x20]
add ebx, eax
add ebx, edx
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 0x408df2
mov edx, 0x1ff
mov esi, dword [esp + 0x50]
test esi, esi
je 0x408de9
mov dword [esi], 0x22
movzx ecx, byte [esp + 3]
fldz
jmp 0x408e05
sub ecx, ebx
lea esi, [ecx + ebp]
add esi, 0xf
fld1
test esi, esi
movzx ecx, byte [esp + 3]
je 0x408e27
fstp st(0)
fld1
mov esi, 0x444250
jmp 0x408e1e
mov ebx, edx
shr ebx, 1
add esi, 8
cmp edx, 2
mov edx, ebx
jb 0x408e27
test dl, 1
je 0x408e10
fmul qword [esi]
jmp 0x408e10
fld st(1)
fmul st(1)
test eax, eax
jns 0x408e3b
fstp st(0)
fdivp st(1)
fldz
fldz
fxch st(1)
fxch st(2)
fstp st(2)
fstp st(0)
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x408e49
mov dword [eax], edi
fld st(0)
fchs
cmp cl, 0x2d
je 0x408e58
fstp st(0)
fldz
fxch st(1)
fstp st(1)
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret