Function at 0x40c790
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 0x40c7b3
inc esi
inc ebp
inc eax
mov ch, byte [edx + eax]
movzx edi, ch
lea ebx, [edi - 9]
cmp ebx, 5
jb 0x40c7b0
cmp edi, 0x20
je 0x40c7b0
mov dword [esp + 0x20], ebp
mov byte [esp + 3], ch
add ch, 0xd5
xor ebx, ebx
test ch, 0xfd
sete bl
add ebx, edx
mov dword [esp + 0xc], ebx
xor ecx, ecx
mov dword [esp + 0x18], 0xffffffff
jmp 0x40c7fb
mov ebx, dword [esp + 0x18]
inc edi
mov dword [esp + 0x18], ebx
mov ecx, edi
mov edi, dword [esp + 0xc]
add edi, ecx
mov dword [esp + 0x28], edi
movzx ebp, byte [esi + edi - 1]
lea ebx, [ebp - 0x30]
cmp ebx, 0xa
mov edi, ecx
jb 0x40c7f0
mov dword [esp + 0x24], ebp
cmp ebp, 0x2e
mov ecx, dword [esp + 0x18]
jne 0x40c827
mov ebx, edi
test ecx, ecx
js 0x40c7f4
xor ebx, ebx
test ecx, ecx
setns ch
mov ebp, dword [esp + 0x20]
jns 0x40c838
mov dword [esp + 0x18], edi
mov bl, ch
mov ecx, edi
sub ecx, ebx
je 0x40c8ad
neg ebx
cmp ecx, 9
mov dword [esp + 0x1c], edi
mov dword [esp + 8], ebx
jle 0x40c8cd
mov dword [esp + 0x10], ecx
add ecx, 0xfffffff6
mov dword [esp + 4], ecx
mov edi, dword [esp + 0xc]
lea ebp, [edi + esi]
movzx edx, byte [edi + esi - 1]
cmp dl, 0x2e
jne 0x40c87a
movzx edx, byte [ebp]
mov ebx, dword [esp + 0x20]
lea ebp, [edi + ebx]
mov ebx, dword [esp + 8]
movzx ecx, byte [esp + 3]
movsx edx, dl
mov dword [esp + 0x14], edx
add edx, 0xffffffd0
cmp dword [esp + 4], 0
mov edi, dword [esp + 0x1c]
je 0x40ca58
mov ch, byte [ebp]
cmp ch, 0x2e
jne 0x40c8f0
movzx ecx, byte [ebp + 1]
mov byte [esp + 4], cl
add ebp, 2
jmp 0x40c8f5
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x40c8b7
mov dword [eax], edx
fldz
fld st(0)
fchs
cmp byte [esp + 3], 0x2d
jne 0x40cc23
jmp 0x40cc29
fldz
test ecx, ecx
jle 0x40c8e4
mov edx, dword [esp + 0xc]
lea ebp, [edx + eax]
movzx ecx, byte [esp + 3]
jmp 0x40ca60
fld st(0)
movzx ecx, byte [esp + 3]
jmp 0x40cab7
inc ebp
mov byte [esp + 4], ch
mov ebx, dword [esp + 0x14]
and ebx, 0xa
mov ecx, ebx
xor ecx, 0xa
mov dword [esp + 0x14], ecx
mov ecx, edx
and ecx, 0xfffffff5
imul ecx, dword [esp + 0x14]
or edx, 0xa
imul edx, ebx
movsx ebx, byte [esp + 4]
add edx, ecx
add edx, ebx
add edx, 0xffffffd0
mov ecx, dword [esp + 0x10]
cmp ecx, 0xc
jl 0x40ca4f
add ecx, 0xfffffff4
movzx ebx, byte [ebp]
cmp bl, 0x2e
mov dword [esp + 4], ecx
jne 0x40c94b
movzx ecx, byte [ebp + 1]
mov byte [esp + 0x14], cl
add ebp, 2
jmp 0x40c950
inc ebp
mov byte [esp + 0x14], 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 + 0x14]
add edx, ecx
add edx, ebx
add edx, 0xffffffd0
cmp dword [esp + 4], 0
je 0x40ca4f
movzx ecx, byte [ebp]
cmp cl, 0x2e
jne 0x40c993
movzx ecx, byte [ebp + 1]
mov byte [esp + 4], cl
add ebp, 2
jmp 0x40c998
inc ebp
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 + 0x10]
cmp ecx, 0xe
jl 0x40ca4f
add ecx, 0xfffffff2
mov dword [esp + 0x10], ecx
movzx ecx, byte [ebp]
cmp cl, 0x2e
jne 0x40c9e4
movzx ecx, byte [ebp + 1]
mov byte [esp + 4], cl
add ebp, 2
jmp 0x40c9e9
inc ebp
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 + 0x10], 0
je 0x40ca4f
movzx ecx, byte [ebp]
cmp cl, 0x2e
jne 0x40ca28
movzx ecx, byte [ebp + 1]
mov byte [esp + 0x10], cl
add ebp, 2
jmp 0x40ca2d
inc ebp
mov byte [esp + 0x10], 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 + 0x10]
add edx, ecx
add edx, ebx
add edx, 0xffffffd0
mov ebx, dword [esp + 8]
movzx ecx, byte [esp + 3]
mov dword [esp + 0x30], edx
fild dword [esp + 0x30]
lea edx, [ebx + edi]
cmp edx, 9
jl 0x40ca6d
mov edx, 9
inc edx
xor ebx, ebx
jmp 0x40ca9c
mov ch, byte [ebp + 1]
add ebp, 2
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 + 0x1c]
jle 0x40caa7
mov ch, byte [ebp]
cmp ch, 0x2e
je 0x40ca80
inc ebp
jmp 0x40ca86
mov dword [esp + 0x2c], ebx
fild dword [esp + 0x2c]
mov ebx, dword [esp + 8]
mov ebp, dword [esp + 0x20]
fxch st(1)
fmul dword [str._knN]
faddp st(1)
mov edx, dword [esp + 0x24]
or edx, 0x20
cmp edx, 0x65
jne 0x40caec
mov eax, dword [esp + 0x28]
movzx edx, byte [esi + eax]
mov eax, edx
add al, 0xd5
test al, 0xfd
je 0x40caf6
mov ecx, edi
mov edi, dword [esp + 0xc]
add edi, esi
mov eax, edi
lea ebp, [edi + ecx]
jmp 0x40cb03
add eax, edi
add dword [esp + 0xc], eax
xor eax, eax
jmp 0x40cb6a
mov esi, dword [esp + 0xc]
add esi, ebp
mov eax, esi
lea ebp, [esi + edi]
mov ecx, edi
movzx ebx, byte [eax + ecx]
lea esi, [ebx - 0x30]
xor eax, eax
cmp esi, 9
ja 0x40cb52
xor eax, eax
movzx ecx, byte [esp + 3]
nop
nop
nop
nop
nop
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 0x40cb20
jmp 0x40cb57
movzx ecx, byte [esp + 3]
mov dword [esp + 0xc], ebp
cmp dl, 0x2d
jne 0x40cb62
neg eax
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 8]
lea edx, [edi + ebx]
cmp edx, 0x10
jge 0x40cb77
mov edx, 0xf
mov ebx, dword [esp + 0x18]
add ebx, eax
add ebx, edx
mov eax, ebx
mov ebp, dword [esp + 8]
sub eax, ebp
sub eax, edi
add eax, 0xfffffff1
mov esi, eax
sar esi, 0x1f
mov edx, eax
xor edx, esi
sub edx, esi
cmp edx, 0x200
jb 0x40cbb6
mov edx, 0x1ff
mov esi, dword [esp + 0x50]
test esi, esi
je 0x40cbb2
mov dword [esi], 0x22
fldz
jmp 0x40cbc4
sub ebp, ebx
lea esi, [edi + ebp]
add esi, 0xf
fld1
test esi, esi
je 0x40cbf4
fstp st(0)
fld1
xor esi, esi
jmp 0x40cbe6
mov ebx, edx
shr ebx, 1
mov edi, esi
and edi, 1
xor esi, 1
lea esi, [esi + edi*2]
cmp edx, 2
mov edx, ebx
jb 0x40cbf4
test dl, 1
je 0x40cbd0
fmul qword [esi*8 + 0x44e718]
jmp 0x40cbd0
fld st(1)
fmul st(1)
test eax, eax
jns 0x40cc08
fstp st(0)
fdivp st(1)
fldz
fldz
fxch st(1)
fxch st(2)
fstp st(2)
fstp st(0)
mov edx, dword [esp + 0x4c]
test edx, edx
mov eax, dword [esp + 0xc]
je 0x40cc1a
mov dword [edx], eax
fld st(0)
fchs
cmp cl, 0x2d
je 0x40cc29
fstp st(0)
fldz
fxch st(1)
fstp st(1)
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret