Function at 0x4082f0
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 0x408313
inc esi
inc ebp
inc eax
mov ch, byte [edx + eax]
movzx edi, ch
lea ebx, [edi - 9]
cmp ebx, 5
jb 0x408310
cmp edi, 0x20
je 0x408310
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 0x408353
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 0x408350
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebp
cmp ebp, 0x2e
mov edi, ecx
mov ebp, edx
jne 0x408382
mov ecx, ebp
test edi, edi
jns 0x408382
inc ebp
jmp 0x408353
xor ebx, ebx
test edi, edi
setns ch
jns 0x40838d
mov edi, ebp
mov bl, ch
mov edx, ebp
sub edx, ebx
movzx ecx, byte [esp + 3]
je 0x4083da
mov dword [esp + 0x24], edi
neg ebx
cmp edx, 9
mov dword [esp + 0x18], ebp
mov dword [esp + 8], ebx
jle 0x4083ef
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 0x408400
movzx edx, byte [ecx]
mov ebx, dword [esp + 0x1c]
add edi, ebx
mov ebx, dword [esp + 8]
jmp 0x408402
mov eax, dword [esp + 0x50]
test eax, eax
je 0x4083e8
mov edx, dword [esp + 0x4c]
mov dword [eax], edx
fldz
jmp 0x408759
fldz
test edx, edx
mov edi, dword [esp + 0x10]
jle 0x40842a
add edi, eax
jmp 0x4085a2
mov edi, ecx
movsx ecx, dl
mov dword [esp + 0x14], ecx
add ecx, 0xffffffd0
cmp dword [esp + 4], 0
je 0x408431
movzx edx, byte [edi]
cmp dl, 0x2e
jne 0x408438
movzx edx, byte [edi + 1]
mov byte [esp + 4], dl
add edi, 2
mov ebx, ecx
jmp 0x40843f
fld st(0)
jmp 0x408612
mov edx, ecx
jmp 0x40859a
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 0x408596
add ecx, 0xfffffff4
movzx ebx, byte [edi]
cmp bl, 0x2e
mov dword [esp + 4], ecx
jne 0x408495
movzx ecx, byte [edi + 1]
mov byte [esp + 0x14], cl
add edi, 2
jmp 0x40849a
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 0x408596
movzx ecx, byte [edi]
cmp cl, 0x2e
jne 0x4084dc
movzx ecx, byte [edi + 1]
mov byte [esp + 4], cl
add edi, 2
jmp 0x4084e1
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 0x408596
add ecx, 0xfffffff2
mov dword [esp + 0xc], ecx
movzx ecx, byte [edi]
cmp cl, 0x2e
jne 0x40852c
movzx ecx, byte [edi + 1]
mov byte [esp + 4], cl
add edi, 2
jmp 0x408531
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 0x408596
movzx ecx, byte [edi]
cmp cl, 0x2e
jne 0x40856f
movzx ecx, byte [edi + 1]
mov byte [esp + 0xc], cl
add edi, 2
jmp 0x408574
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 0x4085af
mov edx, 9
inc edx
xor ebx, ebx
jmp 0x4085f8
mov ch, byte [edi + 1]
add edi, 2
mov dword [esp + 0xc], 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]
mov edi, dword [esp + 0xc]
jle 0x408602
mov ch, byte [edi]
cmp ch, 0x2e
je 0x4085c0
inc edi
jmp 0x4085c6
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 0x408645
mov eax, dword [esp + 0x28]
movzx edx, byte [esi + eax]
mov eax, edx
add al, 0xd5
test al, 0xfd
je 0x40864d
mov edi, dword [esp + 0x10]
add edi, esi
mov eax, edi
lea esi, [edi + ebp]
jmp 0x408659
add eax, ebp
add edi, eax
xor eax, eax
jmp 0x4086b1
mov esi, dword [esp + 0x10]
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 0x4086a0
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 0x408670
mov edi, ebp
cmp dl, 0x2d
jne 0x4086a9
neg eax
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 8]
lea edx, [ebx + ebp]
cmp edx, 0x10
jge 0x4086be
mov edx, 0xf
mov ebx, dword [esp + 0x24]
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
jl 0x408702
mov edx, 0x1ff
mov esi, dword [esp + 0x54]
test esi, esi
je 0x4086f9
mov dword [esi], 0x22
movzx ecx, byte [esp + 3]
fldz
jmp 0x408715
sub ecx, ebx
lea esi, [ecx + ebp]
add esi, 0xf
fld1
test esi, esi
movzx ecx, byte [esp + 3]
je 0x408737
fstp st(0)
fld1
mov esi, 0x441250
jmp 0x40872e
mov ebx, edx
sar ebx, 1
add esi, 8
cmp edx, 2
mov edx, ebx
jb 0x408737
test dl, 1
je 0x408720
fmul qword [esi]
jmp 0x408720
fld st(1)
fmul st(1)
test eax, eax
jns 0x40874b
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 0x408759
mov dword [eax], edi
fld st(0)
fchs
cmp cl, 0x2d
je 0x408768
fstp st(0)
fldz
fxch st(1)
fstp st(1)
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret