Function at 0x40d270
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 0x40d293
inc esi
inc ebp
inc eax
mov ch, byte [edx + eax]
movzx edi, ch
lea ebx, [edi - 9]
cmp ebx, 5
jb 0x40d290
cmp edi, 0x20
je 0x40d290
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 0x40d2db
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 0x40d2d0
mov dword [esp + 0x28], edx
cmp edx, 0x2e
mov ecx, dword [esp + 0x1c]
jne 0x40d307
mov ebx, edi
test ecx, ecx
js 0x40d2d4
xor ebx, ebx
test ecx, ecx
setns ch
mov edx, dword [esp + 0x4c]
jns 0x40d318
mov dword [esp + 0x1c], edi
mov bl, ch
mov ecx, edi
sub ecx, ebx
je 0x40d35a
neg ebx
cmp ecx, 9
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], ebx
jle 0x40d37d
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 0x40d396
movzx edx, byte [ecx]
lea ebx, [edi + ebp]
mov dword [esp], ebx
mov ebx, dword [esp + 0x10]
jmp 0x40d399
mov eax, dword [esp + 0x50]
test eax, eax
movzx ecx, byte [esp + 0xb]
je 0x40d369
mov dword [eax], edx
fldz
fld st(0)
fchs
cmp cl, 0x2d
jne 0x40d764
jmp 0x40d76a
fldz
test ecx, ecx
mov ecx, dword [esp + 0x28]
jle 0x40d3cf
mov edx, dword [esp + 0x14]
lea ecx, [edx + eax]
mov dword [esp], ecx
jmp 0x40d5a5
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 0x40d59d
mov ebx, ecx
mov edx, dword [esp]
movzx ecx, byte [edx]
cmp cl, 0x2e
jne 0x40d3d6
movzx ecx, byte [edx + 1]
mov byte [esp + 4], cl
add edx, 2
mov dword [esp], edx
jmp 0x40d3de
fld st(0)
jmp 0x40d5fc
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 0x40d599
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 0x40d446
movzx ecx, byte [edx + 1]
mov byte [esp + 0x20], cl
add edx, 2
mov dword [esp], edx
jmp 0x40d450
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 0x40d599
mov ebx, ecx
mov edx, dword [esp]
movzx ecx, byte [edx]
cmp cl, 0x2e
jne 0x40d4a8
movzx ecx, byte [edx + 1]
mov byte [esp + 4], cl
add edx, 2
mov dword [esp], edx
jmp 0x40d4b0
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 0x40d599
mov ebx, ecx
add edx, 0xfffffff2
mov dword [esp + 0xc], edx
mov edx, dword [esp]
movzx ecx, byte [edx]
cmp cl, 0x2e
jne 0x40d50d
movzx ecx, byte [edx + 1]
mov byte [esp + 4], cl
add edx, 2
mov dword [esp], edx
jmp 0x40d515
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 0x40d599
mov ebx, ecx
mov edx, dword [esp]
movzx ecx, byte [edx]
cmp cl, 0x2e
jne 0x40d565
movzx ecx, byte [edx + 1]
mov byte [esp + 0xc], cl
add edx, 2
mov dword [esp], edx
jmp 0x40d56d
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 0x40d5b2
mov edx, 9
inc edx
xor ebx, ebx
jmp 0x40d5df
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 0x40d5ec
mov edi, dword [esp]
mov ch, byte [edi]
cmp ch, 0x2e
je 0x40d5c0
inc edi
jmp 0x40d5c6
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 0x40d62c
mov eax, dword [esp + 0x2c]
movzx edx, byte [esi + eax]
mov eax, edx
add al, 0xd5
test al, 0xfd
je 0x40d63a
mov ecx, edi
mov edi, dword [esp + 0x14]
add edi, esi
mov eax, edi
add edi, ecx
jmp 0x40d648
add eax, edi
add dword [esp + 0x14], eax
xor eax, eax
mov edi, dword [esp + 0x50]
jmp 0x40d6a5
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 0x40d692
xor eax, eax
mov ebp, edi
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 0x40d660
jmp 0x40d694
mov ebp, edi
mov dword [esp + 0x14], ebp
cmp dl, 0x2d
jne 0x40d69f
neg eax
mov ebx, dword [esp + 0x10]
mov edi, ecx
mov ecx, dword [esp + 0x24]
lea edx, [ecx + ebx]
cmp edx, 0x10
jge 0x40d6b6
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 0x40d6f9
mov edx, 0x1ff
mov esi, dword [esp + 0x54]
test esi, esi
je 0x40d6f3
mov dword [esi], 0x22
mov ecx, edi
fldz
jmp 0x40d709
sub ecx, ebp
lea esi, [ecx + ebx]
add esi, 0xf
fld1
test esi, esi
mov ecx, edi
je 0x40d737
fstp st(0)
fld1
mov esi, 0x443690
jmp 0x40d72e
mov ebx, edx
shr ebx, 1
add esi, 8
cmp edx, 2
mov edx, ebx
jb 0x40d737
test dl, 1
je 0x40d720
fmul qword [esi]
jmp 0x40d720
fld st(1)
fmul st(1)
test eax, eax
jns 0x40d74b
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 0x40d759
mov dword [ecx], edi
fld st(0)
fchs
cmp byte [esp + 0xb], 0x2d
je 0x40d76a
fstp st(0)
fldz
fxch st(1)
fstp st(1)
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret