Function at 0x40d0e0
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 0x40d103
inc esi
inc ebp
inc eax
mov ch, byte [edx + eax]
movzx edi, ch
lea ebx, [edi - 9]
cmp ebx, 5
jb 0x40d100
cmp edi, 0x20
je 0x40d100
mov dword [esp + 0x28], ebp
mov byte [esp + 0xf], ch
add ch, 0xd5
xor ebx, ebx
test ch, 0xfd
sete bl
add ebx, edx
mov dword [esp + 0x1c], ebx
xor ecx, ecx
mov dword [esp + 0x24], 0xffffffff
jmp 0x40d14b
mov ebx, dword [esp + 0x24]
inc edi
mov dword [esp + 0x24], ebx
mov ecx, edi
mov edi, dword [esp + 0x1c]
add edi, ecx
mov dword [esp + 0x2c], edi
movzx ebp, byte [esi + edi - 1]
lea ebx, [ebp - 0x30]
cmp ebx, 0xa
mov edi, ecx
jb 0x40d140
mov dword [esp + 0x18], ebp
cmp ebp, 0x2e
mov ecx, dword [esp + 0x24]
jne 0x40d177
mov ebx, edi
test ecx, ecx
js 0x40d144
test ecx, ecx
setns ch
jns 0x40d182
mov dword [esp + 0x24], edi
xor ebx, ebx
mov bl, ch
mov ecx, ebx
mov ebx, edi
sub ebx, ecx
je 0x40d208
mov edx, ebx
cmp ebx, 0xf
jl 0x40d19a
mov edx, 0xf
mov dword [esp + 8], edx
fldz
cmp ebx, 9
mov dword [esp + 0x20], edi
jle 0x40d21e
mov edi, dword [esp + 0x1c]
lea ebp, [edi + esi]
movzx edx, byte [edi + esi - 1]
cmp dl, 0x2e
jne 0x40d1c5
movzx edx, byte [ebp]
mov ebx, dword [esp + 0x28]
lea ebp, [edi + ebx]
movsx edx, dl
mov dword [esp + 0x14], edx
add edx, 0xffffffd0
mov dword [esp], edx
mov edx, dword [esp + 8]
mov ebx, edx
not ebx
lea edx, [ebx + edx*2]
mov dword [esp + 4], edx
cmp edx, 0xa
mov edi, dword [esp + 0x20]
jl 0x40d30b
mov dword [esp + 0x10], ecx
movzx ecx, byte [ebp]
cmp cl, 0x2e
jne 0x40d23c
movzx ecx, byte [ebp + 1]
mov byte [esp + 0xe], cl
add ebp, 2
jmp 0x40d241
mov eax, dword [esp + 0x50]
test eax, eax
movzx ecx, byte [esp + 0xf]
je 0x40d217
mov dword [eax], edx
fldz
jmp 0x40d669
mov edx, dword [esp + 0x1c]
lea ebp, [edx + eax]
fld st(0)
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 8]
test ebx, ebx
jg 0x40d44d
jmp 0x40d50b
inc ebp
mov byte [esp + 0xe], cl
mov ebx, dword [esp + 0x14]
and ebx, 0xa
mov ecx, ebx
xor ecx, 0xa
mov dword [esp + 0x14], ecx
mov edx, dword [esp]
mov ecx, edx
and ecx, 0xfffffff5
imul ecx, dword [esp + 0x14]
or edx, 0xa
imul edx, ebx
movsx ebx, byte [esp + 0xe]
add edx, ecx
add ebx, edx
add ebx, 0xffffffd0
mov ecx, dword [esp + 4]
add ecx, ecx
sub ecx, dword [esp + 8]
mov dword [esp + 4], ecx
cmp ecx, 0xa
jl 0x40d431
movzx ecx, byte [ebp]
cmp cl, 0x2e
jne 0x40d29d
movzx ecx, byte [ebp + 1]
mov byte [esp + 8], cl
add ebp, 2
jmp 0x40d2a2
inc ebp
mov byte [esp + 8], cl
mov dword [esp], ebx
mov ebx, dword [esp]
and ebx, 0xa
mov edx, dword [esp]
or dword [esp], 0xa
mov ecx, dword [esp]
imul ecx, ebx
mov dword [esp], ecx
xor ebx, 0xa
and edx, 0xfffffff5
imul edx, ebx
movsx ebx, byte [esp + 8]
add dword [esp], edx
mov ecx, dword [esp]
add ecx, ebx
add ecx, 0xffffffd0
mov dword [esp], ecx
mov edx, dword [esp + 4]
not edx
mov ebx, dword [esp + 4]
lea edx, [edx + ebx*2]
cmp edx, 0xa
jl 0x40d303
movzx ebx, byte [ebp]
cmp bl, 0x2e
mov dword [esp + 8], edx
jne 0x40d317
movzx edx, byte [ebp + 1]
mov byte [esp + 0x14], dl
add ebp, 2
jmp 0x40d31c
mov dword [esp + 4], edx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp]
jmp 0x40d439
inc ebp
mov byte [esp + 0x14], bl
mov ebx, dword [esp]
and ebx, 0xa
mov edx, dword [esp]
or dword [esp], 0xa
mov ecx, dword [esp]
imul ecx, ebx
mov dword [esp], ecx
xor ebx, 0xa
and edx, 0xfffffff5
imul edx, ebx
movsx ebx, byte [esp + 0x14]
add dword [esp], edx
mov ecx, dword [esp]
add ecx, ebx
add ecx, 0xffffffd0
mov dword [esp], ecx
mov ebx, dword [esp]
mov edx, dword [esp + 8]
add edx, edx
sub edx, dword [esp + 4]
cmp edx, 0xa
jl 0x40d37a
movzx ebx, byte [ebp]
cmp bl, 0x2e
mov dword [esp + 8], edx
jne 0x40d383
movzx edx, byte [ebp + 1]
mov byte [esp + 4], dl
add ebp, 2
jmp 0x40d388
mov dword [esp + 4], edx
jmp 0x40d431
inc ebp
mov byte [esp + 4], bl
mov ebx, dword [esp]
and ebx, 0xa
mov edx, dword [esp]
or dword [esp], 0xa
mov ecx, dword [esp]
imul ecx, ebx
mov dword [esp], ecx
xor ebx, 0xa
and edx, 0xfffffff5
imul edx, ebx
movsx ebx, byte [esp + 4]
add dword [esp], edx
mov ecx, dword [esp]
add ecx, ebx
add ecx, 0xffffffd0
mov dword [esp], ecx
mov ebx, dword [esp]
mov edx, dword [esp + 8]
not edx
mov ecx, dword [esp + 8]
lea edx, [edx + ecx*2]
mov dword [esp + 4], edx
cmp edx, 0xa
jl 0x40d431
movzx edx, byte [ebp]
cmp dl, 0x2e
jne 0x40d3e9
movzx edx, byte [ebp + 1]
mov byte [esp + 0x14], dl
add ebp, 2
jmp 0x40d3ee
inc ebp
mov byte [esp + 0x14], dl
mov ebx, dword [esp]
and ebx, 0xa
mov edx, dword [esp]
or dword [esp], 0xa
mov ecx, dword [esp]
imul ecx, ebx
mov dword [esp], ecx
xor ebx, 0xa
and edx, 0xfffffff5
imul edx, ebx
movsx ebx, byte [esp + 0x14]
add dword [esp], edx
mov ecx, dword [esp]
add ecx, ebx
add ecx, 0xffffffd0
mov dword [esp], ecx
mov ebx, dword [esp]
mov ecx, dword [esp + 4]
add ecx, ecx
sub ecx, dword [esp + 8]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x34], ebx
fild dword [esp + 0x34]
mov ebx, dword [esp + 4]
test ebx, ebx
jle 0x40d50b
fstp st(1)
cmp ebx, 1
mov dword [esp + 0x10], ecx
mov dword [esp + 8], ebx
jne 0x40d46d
mov edx, 0xffffffd0
test byte [esp + 8], 1
jne 0x40d4e3
jmp 0x40d4fd
and ebx, 0x7ffffffe
xor edx, edx
jmp 0x40d4a7
mov cl, byte [ebp + 1]
add ebp, 2
lea edi, [edx + edx*4]
movsx edx, ch
lea edx, [edx + edi*2]
add edx, 0xffffffd0
lea edx, [edx + edx*4]
movsx edi, cl
lea edx, [edi + edx*2]
add edx, 0xffffffd0
add ebx, 0xfffffffe
mov edi, dword [esp + 0x20]
je 0x40d4cc
mov ch, byte [ebp]
cmp ch, 0x2e
jne 0x40d4c0
mov ch, byte [ebp + 1]
add ebp, 2
jmp 0x40d4c1
inc ebp
mov cl, byte [ebp]
cmp cl, 0x2e
je 0x40d480
inc ebp
jmp 0x40d486
mov ebx, edx
lea edx, [edx + edx*4]
lea edx, [edx*2 - 0x30]
mov ecx, dword [esp + 0x10]
test byte [esp + 8], 1
je 0x40d4fd
mov ch, byte [ebp]
cmp ch, 0x2e
jne 0x40d4ee
mov ch, byte [ebp + 1]
movsx edi, ch
add edx, edi
mov ebx, edx
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x30], ebx
fild dword [esp + 0x30]
mov edx, dword [esp + 0x18]
fxch st(1)
fmul dword [str._knN]
neg ecx
faddp st(1)
or edx, 0x20
cmp edx, 0x65
mov dword [esp + 0x10], ecx
jne 0x40d540
mov eax, dword [esp + 0x2c]
movzx edx, byte [esi + eax]
mov eax, edx
add al, 0xd5
test al, 0xfd
je 0x40d54c
mov ecx, edi
mov edi, dword [esp + 0x1c]
add edi, esi
mov eax, edi
lea ebp, [edi + ecx]
jmp 0x40d55b
add eax, edi
mov edi, dword [esp + 0x1c]
add edi, eax
xor eax, eax
jmp 0x40d5af
mov esi, dword [esp + 0x1c]
add esi, dword [esp + 0x28]
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 0x40d5a6
xor eax, eax
nop
nop
nop
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
add eax, edi
movsx esi, bl
add esi, 0xffffffd0
mov edi, eax
and edi, esi
xor esi, eax
lea eax, [esi + edi*2]
movzx ebx, byte [ebp + 1]
inc ebp
mov esi, ebx
add esi, 0xffffffd0
cmp esi, 0xa
jb 0x40d570
mov edi, ebp
cmp dl, 0x2d
jne 0x40d5af
neg eax
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x10]
lea edx, [ecx + esi]
mov ecx, esi
cmp edx, 0x10
jge 0x40d5c6
mov edx, 0xf
mov ebp, dword [esp + 0x24]
add ebp, eax
add ebp, edx
mov eax, ebp
sub eax, ecx
mov ebx, dword [esp + 0x20]
sub eax, ebx
add eax, 0xfffffff1
mov esi, eax
sar esi, 0x1f
mov edx, eax
xor edx, esi
sub edx, esi
cmp edx, 0x200
mov esi, ecx
movzx ecx, byte [esp + 0xf]
jb 0x40d60c
mov edx, 0x1ff
mov esi, dword [esp + 0x54]
test esi, esi
je 0x40d608
mov dword [esi], 0x22
fldz
jmp 0x40d619
sub esi, ebp
add esi, ebx
add esi, 0xf
fld1
test esi, esi
je 0x40d647
fstp st(0)
fld1
mov esi, 0x448718
jmp 0x40d63e
mov ebx, edx
shr ebx, 1
add esi, 8
cmp edx, 2
mov edx, ebx
jb 0x40d647
test dl, 1
je 0x40d630
fmul qword [esi]
jmp 0x40d630
fld st(1)
fmul st(1)
test eax, eax
jns 0x40d65b
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 0x40d669
mov dword [eax], edi
fld st(0)
fchs
cmp cl, 0x2d
je 0x40d678
fstp st(0)
fldz
fxch st(1)
fstp st(1)
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret