Function at 0x408880
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 0x4088a3
inc esi
inc ebp
inc eax
mov ch, byte [edx + eax]
movzx edi, ch
lea ebx, [edi - 9]
cmp ebx, 5
jb 0x4088a0
cmp edi, 0x20
je 0x4088a0
mov byte [esp + 0xb], ch
add ch, 0xd5
xor ebx, ebx
test ch, 0xfd
sete bl
add ebx, edx
mov dword [esp + 0x14], ebx
xor ecx, ecx
mov dword [esp + 0x1c], 0xffffffff
jmp 0x4088eb
mov ebx, dword [esp + 0x1c]
inc edi
mov dword [esp + 0x1c], ebx
mov ecx, edi
mov edi, dword [esp + 0x14]
add edi, ecx
mov dword [esp + 0x2c], edi
movzx edx, byte [esi + edi - 1]
lea ebx, [edx - 0x30]
cmp ebx, 0xa
mov edi, ecx
jb 0x4088e0
mov dword [esp + 0x28], edx
cmp edx, 0x2e
mov ecx, dword [esp + 0x1c]
jne 0x408917
mov ebx, edi
test ecx, ecx
js 0x4088e4
xor ebx, ebx
test ecx, ecx
setns ch
mov edx, dword [esp + 0x4c]
jns 0x408928
mov dword [esp + 0x1c], edi
mov bl, ch
mov ecx, edi
sub ecx, ebx
je 0x40896a
neg ebx
cmp ecx, 9
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], ebx
jle 0x40898d
mov dword [esp + 0xc], ecx
add ecx, 0xfffffff6
mov dword [esp + 4], ecx
mov edi, dword [esp + 0x14]
lea ecx, [edi + esi]
movzx edx, byte [edi + esi - 1]
cmp dl, 0x2e
jne 0x4089a6
movzx edx, byte [ecx]
lea ebx, [edi + ebp]
mov dword [esp], ebx
mov ebx, dword [esp + 0x10]
jmp 0x4089a9
mov eax, dword [esp + 0x50]
test eax, eax
movzx ecx, byte [esp + 0xb]
je 0x408979
mov dword [eax], edx
fldz
fld st(0)
fchs
cmp cl, 0x2d
jne 0x408d74
jmp 0x408d7a
fldz
test ecx, ecx
mov ecx, dword [esp + 0x28]
jle 0x4089df
mov edx, dword [esp + 0x14]
lea ecx, [edx + eax]
mov dword [esp], ecx
jmp 0x408bb5
mov dword [esp], ecx
movsx ecx, dl
mov dword [esp + 0x18], ecx
add ecx, 0xffffffd0
cmp dword [esp + 4], 0
mov edi, dword [esp + 0x24]
je 0x408bad
mov ebx, ecx
mov edx, dword [esp]
movzx ecx, byte [edx]
cmp cl, 0x2e
jne 0x4089e6
movzx ecx, byte [edx + 1]
mov byte [esp + 4], cl
add edx, 2
mov dword [esp], edx
jmp 0x4089ee
fld st(0)
jmp 0x408c0c
inc edx
mov dword [esp], edx
mov byte [esp + 4], cl
mov ecx, ebx
and ecx, 0xfffffff5
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x18]
and ecx, 0xa
mov edx, ecx
xor edx, 0xa
imul edx, dword [esp + 0x20]
or ebx, 0xa
imul ebx, ecx
movsx ecx, byte [esp + 4]
mov dword [esp + 4], ecx
mov ecx, ebx
add ecx, edx
mov edx, dword [esp + 4]
add ecx, edx
add ecx, 0xffffffd0
mov edx, dword [esp + 0xc]
cmp edx, 0xc
jl 0x408ba9
mov dword [esp + 0x18], ecx
lea ecx, [edx - 0xc]
mov edx, dword [esp]
mov bh, byte [edx]
cmp bh, 0x2e
mov dword [esp + 4], ecx
jne 0x408a56
movzx ecx, byte [edx + 1]
mov byte [esp + 0x20], cl
add edx, 2
mov dword [esp], edx
jmp 0x408a60
mov bl, bh
inc edx
mov dword [esp], edx
mov byte [esp + 0x20], bh
mov ebx, dword [esp + 0x18]
mov ecx, ebx
and ecx, 0xfffffff5
mov edx, ebx
and edx, 0xa
or ebx, 0xa
imul ebx, edx
xor edx, 0xa
imul edx, ecx
movsx ecx, byte [esp + 0x20]
mov dword [esp + 0x18], ecx
mov ecx, ebx
add ecx, edx
mov edx, dword [esp + 0x18]
add ecx, edx
add ecx, 0xffffffd0
cmp dword [esp + 4], 0
je 0x408ba9
mov ebx, ecx
mov edx, dword [esp]
movzx ecx, byte [edx]
cmp cl, 0x2e
jne 0x408ab8
movzx ecx, byte [edx + 1]
mov byte [esp + 4], cl
add edx, 2
mov dword [esp], edx
jmp 0x408ac0
inc edx
mov dword [esp], edx
mov byte [esp + 4], cl
mov ecx, ebx
and ecx, 0xfffffff5
mov edx, ebx
and edx, 0xa
or ebx, 0xa
imul ebx, edx
xor edx, 0xa
imul edx, ecx
movsx ecx, byte [esp + 4]
mov dword [esp + 4], ecx
mov ecx, ebx
add ecx, edx
mov edx, dword [esp + 4]
add ecx, edx
add ecx, 0xffffffd0
mov edx, dword [esp + 0xc]
cmp edx, 0xe
jl 0x408ba9
mov ebx, ecx
add edx, 0xfffffff2
mov dword [esp + 0xc], edx
mov edx, dword [esp]
movzx ecx, byte [edx]
cmp cl, 0x2e
jne 0x408b1d
movzx ecx, byte [edx + 1]
mov byte [esp + 4], cl
add edx, 2
mov dword [esp], edx
jmp 0x408b25
inc edx
mov dword [esp], edx
mov byte [esp + 4], cl
mov ecx, ebx
and ecx, 0xfffffff5
mov edx, ebx
and edx, 0xa
or ebx, 0xa
imul ebx, edx
xor edx, 0xa
imul edx, ecx
movsx ecx, byte [esp + 4]
mov dword [esp + 4], ecx
mov ecx, ebx
add ecx, edx
mov edx, dword [esp + 4]
add ecx, edx
add ecx, 0xffffffd0
cmp dword [esp + 0xc], 0
je 0x408ba9
mov ebx, ecx
mov edx, dword [esp]
movzx ecx, byte [edx]
cmp cl, 0x2e
jne 0x408b75
movzx ecx, byte [edx + 1]
mov byte [esp + 0xc], cl
add edx, 2
mov dword [esp], edx
jmp 0x408b7d
inc edx
mov dword [esp], edx
mov byte [esp + 0xc], cl
mov ecx, ebx
and ecx, 0xfffffff5
mov edx, ebx
and edx, 0xa
or ebx, 0xa
imul ebx, edx
xor edx, 0xa
imul edx, ecx
movsx ecx, byte [esp + 0xc]
mov dword [esp + 0xc], ecx
mov ecx, ebx
add ecx, edx
mov edx, dword [esp + 0xc]
add ecx, edx
add ecx, 0xffffffd0
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x34], ecx
fild dword [esp + 0x34]
lea edx, [ebx + edi]
cmp edx, 9
jl 0x408bc2
mov edx, 9
inc edx
xor ebx, ebx
jmp 0x408bef
mov ch, byte [edi + 1]
add edi, 2
mov dword [esp], edi
lea ebx, [ebx + ebx*4]
movsx edi, ch
lea ebx, [edi + ebx*2]
add ebx, 0xffffffd0
dec edx
cmp edx, 1
mov edi, dword [esp + 0x24]
jle 0x408bfc
mov edi, dword [esp]
mov ch, byte [edi]
cmp ch, 0x2e
je 0x408bd0
inc edi
jmp 0x408bd6
mov dword [esp + 0x30], ebx
fild dword [esp + 0x30]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
fxch st(1)
fmul dword [str._knN]
faddp st(1)
or ecx, 0x20
cmp ecx, 0x65
jne 0x408c3c
mov eax, dword [esp + 0x2c]
movzx edx, byte [esi + eax]
mov eax, edx
add al, 0xd5
test al, 0xfd
je 0x408c4a
mov ecx, edi
mov edi, dword [esp + 0x14]
add edi, esi
mov eax, edi
add edi, ecx
jmp 0x408c58
add eax, edi
add dword [esp + 0x14], eax
xor eax, eax
mov edi, dword [esp + 0x50]
jmp 0x408cb5
mov esi, dword [esp + 0x14]
add esi, ebp
mov eax, esi
add esi, edi
mov ecx, edi
mov edi, esi
movzx ebx, byte [eax + ecx]
lea esi, [ebx - 0x30]
xor eax, eax
cmp esi, 9
mov ecx, dword [esp + 0x50]
ja 0x408ca2
xor eax, eax
mov ebp, edi
nop
nop
mov esi, eax
and esi, 0xfffffff5
mov edi, eax
and edi, 0xa
or eax, 0xa
imul eax, edi
xor edi, 0xa
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 0x408c70
jmp 0x408ca4
mov ebp, edi
mov dword [esp + 0x14], ebp
cmp dl, 0x2d
jne 0x408caf
neg eax
mov ebx, dword [esp + 0x10]
mov edi, ecx
mov ecx, dword [esp + 0x24]
lea edx, [ecx + ebx]
cmp edx, 0x10
jge 0x408cc6
mov edx, 0xf
mov ebp, dword [esp + 0x1c]
add ebp, eax
add ebp, edx
mov eax, ebp
sub eax, ebx
mov ecx, ebx
mov ebx, dword [esp + 0x24]
sub eax, ebx
add eax, 0xfffffff1
mov esi, eax
sar esi, 0x1f
mov edx, eax
xor edx, esi
sub edx, esi
cmp edx, 0x200
jb 0x408d09
mov edx, 0x1ff
mov esi, dword [esp + 0x54]
test esi, esi
je 0x408d03
mov dword [esi], 0x22
mov ecx, edi
fldz
jmp 0x408d19
sub ecx, ebp
lea esi, [ecx + ebx]
add esi, 0xf
fld1
test esi, esi
mov ecx, edi
je 0x408d47
fstp st(0)
fld1
mov esi, 0x43d250
jmp 0x408d3e
mov ebx, edx
shr ebx, 1
add esi, 8
cmp edx, 2
mov edx, ebx
jb 0x408d47
test dl, 1
je 0x408d30
fmul qword [esi]
jmp 0x408d30
fld st(1)
fmul st(1)
test eax, eax
jns 0x408d5b
fstp st(0)
fdivp st(1)
fldz
fldz
fxch st(1)
fxch st(2)
fstp st(2)
fstp st(0)
test ecx, ecx
mov edi, dword [esp + 0x14]
je 0x408d69
mov dword [ecx], edi
fld st(0)
fchs
cmp byte [esp + 0xb], 0x2d
je 0x408d7a
fstp st(0)
fldz
fxch st(1)
fstp st(1)
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret