Function at 0x40c750
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov esi, 1
mov ebp, 2
xor eax, eax
mov edx, dword [esp + 0x44]
jmp 0x40c773
inc esi
inc ebp
inc eax
mov ch, byte [edx + eax]
movzx edi, ch
lea ebx, [edi - 9]
cmp ebx, 5
jb 0x40c770
cmp edi, 0x20
je 0x40c770
mov byte [esp + 7], ch
add ch, 0xd5
test ch, 0xfd
mov ecx, 0
sete cl
add ecx, edx
xor ebx, ebx
mov dword [esp + 0xc], 0xffffffff
jmp 0x40c7b9
mov edi, dword [esp + 0xc]
inc ebx
mov dword [esp + 0xc], edi
lea edi, [ecx + ebx]
mov dword [esp + 0x24], edi
movzx edx, byte [esi + edi - 1]
lea edi, [edx - 0x30]
cmp edi, 0xa
jb 0x40c7b0
mov dword [esp + 0x20], edx
cmp edx, 0x2e
jne 0x40c7df
mov edi, ebx
cmp dword [esp + 0xc], 0
js 0x40c7b4
mov dword [esp + 0x1c], ecx
cmp dword [esp + 0xc], 0
setns dl
jns 0x40c7f1
mov dword [esp + 0xc], ebx
xor ecx, ecx
mov cl, dl
mov edx, ebx
sub edx, ecx
je 0x40c852
neg ecx
cmp edx, 9
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ecx
jle 0x40c87d
mov dword [esp + 0x18], edx
lea ecx, [edx - 0xa]
mov dword [esp + 8], ecx
mov edi, dword [esp + 0x1c]
lea edx, [edi + esi]
mov ch, byte [edi + esi - 1]
cmp ch, 0x2e
jne 0x40c82a
mov ch, byte [edx]
lea edx, [edi + ebp]
mov dword [esp], edx
movsx edi, ch
add edi, 0xffffffd0
cmp dword [esp + 8], 0
je 0x40c906
mov ecx, dword [esp]
movzx edx, byte [ecx]
cmp dl, 0x2e
jne 0x40c89a
movzx edx, byte [ecx + 1]
add ecx, 2
jmp 0x40c89b
mov eax, dword [esp + 0x48]
test eax, eax
movzx ecx, byte [esp + 7]
je 0x40c865
mov edx, dword [esp + 0x44]
mov dword [eax], edx
fldz
fld st(0)
fchs
cmp cl, 0x2d
je 0x40c876
fstp st(0)
fldz
fxch st(1)
fstp st(1)
jmp 0x40cac1
fldz
test edx, edx
mov ebx, dword [esp + 0x1c]
jle 0x40c893
lea edx, [ebx + eax]
mov dword [esp], edx
mov ebx, dword [esp + 0x10]
jmp 0x40c912
fld st(0)
jmp 0x40c96d
inc ecx
mov dword [esp], ecx
lea edi, [edi + edi*4]
movsx edx, dl
lea edi, [edx + edi*2]
add edi, 0xffffffd0
mov ecx, dword [esp + 0x18]
cmp ecx, 0xc
jl 0x40c906
add ecx, 0xfffffff4
mov dword [esp + 8], ecx
mov edx, dword [esp]
mov ch, byte [edx]
cmp ch, 0x2e
jne 0x40c8cc
mov ch, byte [edx + 1]
add edx, 2
jmp 0x40c8cd
inc edx
mov dword [esp], edx
lea edi, [edi + edi*4]
movsx edx, ch
lea edi, [edx + edi*2]
add edi, 0xffffffd0
cmp dword [esp + 8], 0
je 0x40c906
mov dword [esp + 8], edi
mov edi, dword [esp]
movzx edx, byte [edi]
cmp dl, 0x2e
mov ecx, dword [esp + 0x14]
jne 0x40cac9
movzx edx, byte [edi + 1]
add edi, 2
jmp 0x40caca
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x2c], edi
fild dword [esp + 0x2c]
lea edx, [ecx + ebx]
cmp edx, 9
jl 0x40c91f
mov edx, 9
inc edx
xor edi, edi
jmp 0x40c954
mov ch, byte [ebx + 1]
add ebx, 2
mov dword [esp], ebx
lea edi, [edi + edi*4]
movsx ebx, ch
mov ecx, ebx
and ecx, 0xffffffcf
or ebx, 0xffffffcf
lea ecx, [ecx + edi*2]
lea edi, [ebx + ecx]
inc edi
dec edx
cmp edx, 1
jle 0x40c961
mov ebx, dword [esp]
mov ch, byte [ebx]
cmp ch, 0x2e
je 0x40c930
inc ebx
jmp 0x40c936
mov dword [esp + 0x28], edi
fild dword [esp + 0x28]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
fxch st(1)
fmul dword [str._knN]
faddp st(1)
or ecx, 0x20
cmp ecx, 0x65
jne 0x40c997
mov eax, dword [esp + 0x24]
movzx edx, byte [esi + eax]
mov eax, edx
add al, 0xd5
test al, 0xfd
je 0x40c9a1
add ebx, esi
jmp 0x40c9a3
add eax, dword [esp + 0x10]
add ebx, eax
xor eax, eax
jmp 0x40c9f9
add ebx, ebp
mov eax, ebx
mov esi, dword [esp + 0x10]
lea ebp, [ebx + esi]
movzx ebx, byte [ebx + esi]
lea ecx, [ebx - 0x30]
xor eax, eax
cmp ecx, 9
ja 0x40c9f0
xor eax, eax
nop
nop
nop
nop
mov ecx, eax
and ecx, 0xfffffff5
mov esi, eax
and esi, 0xa
or eax, 0xa
imul eax, esi
xor esi, 0xa
imul esi, ecx
movsx ecx, bl
add ecx, eax
lea eax, [esi + ecx]
add eax, 0xffffffd0
movzx ebx, byte [ebp + 1]
inc ebp
mov ecx, ebx
add ecx, 0xffffffd0
cmp ecx, 0xa
jb 0x40c9c0
mov ebx, ebp
cmp dl, 0x2d
jne 0x40c9f9
neg eax
mov ebp, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
lea edx, [ecx + edi]
cmp edx, 0x10
jge 0x40ca12
mov edx, 0xf
add ebp, eax
add ebp, edx
mov eax, ebp
sub eax, edi
mov esi, dword [esp + 0x10]
sub eax, esi
add eax, 0xfffffff1
mov ecx, eax
sar ecx, 0x1f
mov edx, eax
xor edx, ecx
sub edx, ecx
cmp edx, 0x200
jb 0x40ca51
mov edx, 0x1ff
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x40ca49
mov dword [ecx], 0x22
mov edi, dword [esp + 0x48]
fldz
jmp 0x40ca68
sub edi, ebp
lea ecx, [edi + esi]
add ecx, 0xf
fld1
test ecx, ecx
movzx ecx, byte [esp + 7]
mov edi, dword [esp + 0x48]
je 0x40ca9c
fstp st(0)
fld1
mov esi, 0x44e718
jmp 0x40ca93
mov ecx, edx
shr ecx, 1
add esi, 8
cmp edx, 2
mov edx, ecx
movzx ecx, byte [esp + 7]
jb 0x40ca9c
test dl, 1
je 0x40ca80
fmul qword [esi]
jmp 0x40ca80
fld st(1)
fmul st(1)
test eax, eax
jns 0x40cab0
fstp st(0)
fdivp st(1)
fldz
fldz
fxch st(1)
fxch st(2)
fstp st(2)
fstp st(0)
test edi, edi
je 0x40caba
mov dword [edi], ebx
cmp cl, 0x2d
jne 0x40cac1
fchs
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
inc edi
mov dword [esp], edi
mov edi, dword [esp + 8]
lea edi, [edi + edi*4]
movsx edx, dl
lea edi, [edx + edi*2]
add edi, 0xffffffd0
mov edx, dword [esp + 0x18]
cmp edx, 0xe
jl 0x40c90a
mov dword [esp + 8], edi
add edx, 0xfffffff2
mov dword [esp + 0x18], edx
mov edi, dword [esp]
movzx edx, byte [edi]
cmp dl, 0x2e
jne 0x40cb09
movzx edx, byte [edi + 1]
add edi, 2
jmp 0x40cb0a
inc edi
mov dword [esp], edi
mov edi, dword [esp + 8]
lea edi, [edi + edi*4]
movsx edx, dl
lea edi, [edx + edi*2]
add edi, 0xffffffd0
cmp dword [esp + 0x18], 0
je 0x40c90a
mov dword [esp + 8], edi
mov edi, dword [esp]
movzx edx, byte [edi]
cmp dl, 0x2e
jne 0x40cb40
movzx edx, byte [edi + 1]
add edi, 2
jmp 0x40cb41
inc edi
mov dword [esp], edi
mov edi, dword [esp + 8]
lea edi, [edi + edi*4]
movsx edx, dl
lea edi, [edx + edi*2]
add edi, 0xffffffd0
jmp 0x40c90a